2,401
questions
0
votes
1
answer
28
views
Can't replace useragent
I use fake_useragent for a random user agent but it still remains python-requests/2.28.1
user = UserAgent()
header = {'user_agent': user.random}
link = "url"
responce = requests.get(link, ...
0
votes
0
answers
34
views
Issue with Copy Functionality in WebView Using Mac Catalyst
I am developing a Mac app via Mac Catalyst and encountering an issue with WebView. Specifically, I'm loading a webpage (e.g., https://translate.google.com) in WKWebView, but when I press the copy ...
0
votes
0
answers
9
views
How can I change the client side User Agent String of a WebView page?
I'm trying to authenticate on a website that only works on Linux. In a standard browser window this can easily be done with an extension that changes the User Agent String (for example, User-Agent ...
-2
votes
0
answers
31
views
anybody know user agent string for samsung galaxy tab s9+?
During my development, I used navigator.userAgent to detect mobile & tablet.
Unfortunately, Samsung Galaxy Tab S9+ says Mobile.
Anybody could you share the user agent string for Samsung Galaxy Tab ...
0
votes
0
answers
43
views
Setting the User-Agent in a window.open request
I understand now that from @Gertjan Brouwer's comments in this discussion, what I want to do to change the User-Agent header is to issue the following sequence for an XMLHttpRequest, something like so:...
0
votes
0
answers
31
views
Why several webpage does not work User Agent in Python Code for Web Scraping?
I have faced a problem. Whenever I used User Agent in my Python Code, it shows abnormal activity. Please see the code bellow -
#import necessary Library
import requests
from bs4 import BeautifulSoup
...
1
vote
1
answer
116
views
How to detect the correct User-Agent in Android Apps, running in ChromeOS?
I have written this basic code to detect the kind of app where my hybrid Android app is running, desktop, tablet, and phone:
var deviceDetector = (function() {
var userAgent = navigator.userAgent....
0
votes
1
answer
52
views
In Chrome DevTools where is [Attribute Style] defined?
I'm working on a web app that has a lot of tables. In the prior version of the product, there was a little extra padding on the table rows. This wasn't defined specifically in a style sheet, but was ...
0
votes
1
answer
158
views
CEFSharp Changing User Agent through a custom handler
UNABLE TO DELETE. Wrong approach to the problem. Use the example the code maintainer gives
Still really new to working with the cefsharp project.
I am trying to tie the User Agent to an instance ...
0
votes
0
answers
138
views
How to Verify if User is Accessing Website via Telegram Mobile App in PHP?
I everyone, hope You're fine, I'm working on a PHP-based website and I need to ensure that users are accessing the site through the Telegram mobile app (both iOS and Android). If the user is not using ...
0
votes
1
answer
338
views
Verify that user agent facebookexternalhit is really Facebook
I'm seeing a lot of hits on my website with the following user agent:
facebookexternalhit/1.1 (+http://www.facebook.com/externalhit_uatext.php)
I'm trying to verify whether it really is from Facebook ...
0
votes
0
answers
36
views
How do I avoid NullReferenceException when user-agent is absent from ASP.NET MVC (Umbraco) app?
TryBooking is calling my URL, but no longer passing through a user-agent. Postman shows the same error when calling the URL with no user-agent:
[NullReferenceException: Object reference not set to an ...
0
votes
0
answers
162
views
I can't get the user agent for the device to send a http request in my flutter app
I want to get and send the device user agent in my request.
I looked for some answers and I got that there is a package that gives the device user agent it is called device_info_plus but the issue ...
0
votes
0
answers
43
views
How can I append some string to InAppWebView?
We have the option to add User-Agent to InAppWebView, but it overrides the User-Agent value.
How can I append some string to the current User-Agent?
final userAgentSuffix = '...';
final userAgent = '$...
0
votes
0
answers
36
views
Why does this htaccess rule blocking certain user agents crash my server?
I'm trying to block spambots using an htaccess rule based on their user agents.
Here's the rule I added:
# Block via User Agent
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{...
0
votes
0
answers
101
views
pyinstaller ModuleNotFoundError: 'fake_useragent.data'
above all, thanks for coming.
I'm doing web-scrapping and making it into .exe file
codes works well but not in .exe file
what I want : working exe file, avoid bot detection
what I'm doing :
I'm making ...
0
votes
1
answer
45
views
What browser is "vp-iphone" & "vp-ipad"?
We have a public API gateway to generate images.
Today I looked into the access logs and found a lot of API requests with User-Agents like:
vp-iphone 6.121.0 sysVer 17.4.1-iOS
vp-ipad 6.120.0 sysVer ...
0
votes
0
answers
122
views
htaccess SetEnvIfNoCase User-Agent
I have the following lines in my htaccess file -
SetEnvIfNoCase User-Agent "go-http-client" getout # hackers
SetEnvIfNoCase User-Agent "python" getout # hackers
SetEnvIf ...
0
votes
1
answer
164
views
iOS targeting javascript does not work on Ipad, only iphone
I am trying to create code to target ios and replace a background-attachment:fixed banner with a banner that just has the image and not background-attachment property.
The code that I have works on ...
-3
votes
1
answer
69
views
What userAgent do I need for the method to return true?
enter image description here
I wanted to make a parsing program for one popular site, but it has protection. I also heard that the site has group ib and ja3.
enter image description hereI've been ...
0
votes
0
answers
68
views
firefox browser in mobile view is giving 504 gateway timeout response
I am trying to debug an issue where in web Firefox browser responsive mobile view when i am logged in https://www.codingninjas.com/studio/home by either method google login or email login, the page ...
0
votes
0
answers
68
views
http-only cookie being set only after some time delay (chrome)
i see some weird behavior with http-only cookie - if i make subsequent request, the set-cookie header sent from the backend is not sent properly on the next request.
for example i tried it even via ...
2
votes
0
answers
170
views
Instagram not visible in useragent for newer iphone versions
I have an hypothesis that inapp-browsers such as Instagram's, Facebook's and TikTok's browsers arn't visible in the useragent for newer versions of Iphones or Safari. Does anyone have any idea if this ...
0
votes
1
answer
135
views
Ionic: unable to appendUserAgent
I have an android/ios application with ionic+capacitor. Capacitor version is v5. I want append a custom string to the useragent, but nothing worked.
Here is my config file:
/// <reference ...
1
vote
1
answer
158
views
user agent and data scraping with R
I am working on a data visualization project and I need to scrape some data from a website.
When I tried I received the following error:
'Error in read_html.response(link): Forbidden (HTTP 403).'
...
1
vote
0
answers
344
views
Swift - How to get the Safari app's user agent string or build version programmatically?
Our app is a shopping app that contains an in-app custom browser using WKWebView.
We occasionally have issues with some merchants for things like social auth (Google/Facebook sign in), PayPal checkout,...
0
votes
1
answer
269
views
React Native okhttp user agent
I have a React native application using a Webview for most of the UI. We've been facing some issues on out backend side where there are multiple revoke token errors. The backend is in Flask. We've ...
0
votes
0
answers
84
views
User Agent not showing in apache2 logs
As per title, in my apache2 (Apache/2.4.25) logs, the User Agent is not showing.
This is the entry in my apache2.conf
LogFormat "%h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \&...
0
votes
1
answer
108
views
Are User Agents always in English?
I am working on making a basic User Agent parser, and was wondering if I would have any I18N issues with an English-centric approach.
For example, in this Safari User Agent...
Mozilla/5.0 (iPhone; CPU ...
0
votes
0
answers
123
views
Open desktop version in iframe on mobile browser for embed Polarsteps
I have an embed link of my PolarSteps profil on my website as an iframe. It's working perfectly fine on desktop. On mobile browser like Safari and Chrome, Polarsteps is no longer navigable, but every ...
0
votes
0
answers
41
views
Mobile Theme not working in Ipad magento 2
enter image description here
We've two themes in our project one for desktop and another for mobile.
Mobile Theme not working in Ipad magento 2.
/iPhone|iPod|iPad|BlackBerry|Palm|Googlebot-Mobile|...
0
votes
1
answer
81
views
How to modify Laravel middleware using Jessengers/Agent package to allow cURL access?
I am using the Jessengers/Agent package in my Laravel project for user agent parsing, and I have a middleware (BotMiddleware) that currently denies access to bots. However, I want to modify it to ...
0
votes
1
answer
202
views
Used a random user_agent when using Geopy. What could be the consequences?
So, I realise this is a stupid question but hear me out. I wanted to find out the latitudes and longitudes from addresses in a dataframe.But when I ran the following cell, I got an error that asked me ...
0
votes
0
answers
116
views
how can i get inapp browser user-agent?
Here is code on script
and i want to get app.isapp = true on this script with change user-agent on chrome
I tried but it seems wrong i don't know how can i
Tried 'mozilla/5.0 (iphone; cpu iphone os ...
1
vote
2
answers
4k
views
Detecting if the user is on desktop or mobile in the browser
I have a web page and am trying to detect if the user is accessing the page on the desktop or on the mobile. What is the typical way to do this? Note I dont want to use the page width (e.g. window....
0
votes
0
answers
192
views
iMessage User Agent firing crawler twice
I've been building an express server to filter our crawlers from normal users to display very specific meta information. I've got a very large crawler list (JSON) that I use pattern matching on to ...
-1
votes
1
answer
1k
views
Spam Traffic from Google Hosted IPs
I have been facing a serious issue on my website due to potential spam traffic originating from Google hosted IP addresses. Here are two examples:
Example 1:
IP: 34.77.98.119 | User Agent: newspaper/0....
0
votes
0
answers
8
views
how to configure or enable reply time calculate with any mark shows in sent item
Is there a method to configure or enable the display of reply time calculation in the sent item? I would like to examine whether my agent's email responses were within the allotted time frame by ...
1
vote
0
answers
641
views
When using undetected-chromedriver I can't change the useragent
Have anyone faced this issue before? here is my code
from selenium import webdriver
import time
import undetected_chromedriver as uc
# Define a custom user agent string
user_agent = "Mozilla/5.0 ...
4
votes
0
answers
2k
views
UserAgent cannot be changed from UserDefaults only iOS 17 Device using Xcode 15
I want to custom UserAgent(UA) in UIWebView using registerDefaults method of NSUserDefaults
NSString *userAgent = @"test user agent";
NSDictionary *dict = [NSDictionary ...
0
votes
0
answers
100
views
Determine delimiter for a CSV/Excel file based on Operating System
I have a React application where I'm giving options to download some data either as a CSV or Excel. It works fine in Windows when I use a comma as a delimiter (to separate cells in a row). But it does ...
0
votes
0
answers
37
views
Set a specific "consumer" param through user agent in nextjs
I'm working on a VOD project with next.js,
It has a /play page which is only a video player (Plyr React Component)
This VOD website's contents are available in some other applications, and when a ...
0
votes
0
answers
59
views
Detect in app web browser in ios during scan of qr by the qr widget in ios devices
i want to detect in reactjs when i am in browser and when i am in app web browser so that i can perform action on the that basis
const userAgent = navigator.userAgent.toLowerCase();
if (userAgent....
0
votes
0
answers
124
views
Webview userAgent Prop breaks onShouldLoadWithRequest event request object
I am working on a project using a react native webview that renders a web page that uses Power bi and allows the user to download any Power Bi report (not static downloads but progressive). Currently ...
-3
votes
1
answer
147
views
How do I redirect Mobile users who click on a link to another link while desktop user go to the same link they clicked on? [duplicate]
Say I have a link that is “link.com/page”.
I want desktop users who click the above link to go to “link.com/page”, but mobile users or tablet users to go to “link.com/differentpage” or even “...
0
votes
0
answers
18
views
Is there a way to inspect the exact styling properties of checkboxes in Windows 11 and apply them as custom CSS Code while overwriting native styles?
This approach is intended to overwrite the iOS native styles for checkboxes while applying Windows' native styles instead. The problem that I want to address is that checkboxes on my page appear ...
2
votes
1
answer
642
views
How to detect user browser (firefox, chrome,...) in 2023
I'm searching for a way to detect on which browser the client is in Javascript. I have seen a lot of articles using navigator.useragent. But it seems that this way is not recommanded and deprecated ...
-1
votes
1
answer
417
views
Python Scrapy - (403) status code is not handled or not allowed
I'm trying to scrape reviews from Tripadvisor, more specifically from this address.
I'm currently unable to scrape any data and I'm returned the 403 status code. At first I tried the usual command ...
-1
votes
1
answer
114
views
Unexpected user agent stylesheet at chrome browser
I'm seeing an unexpected user agent spreadsheet being used to hide a div. I say unexpected because it does not show anywhere else where Chrome's user agent spreadsheets are documented, such as https://...
1
vote
0
answers
130
views
Registering a user in tryit-jssip
I'm trying to register an agent in https://tryit.jssip.net/.
Attach is the screenshot for populating the data.
JsSIP UA settings
Into the sip Uri I'm writing the information as below:
test@mypublic ip ...