Questions tagged [user-agent]

A user agent is a piece of software (a software agent) that acts on behalf of a user. The term is often used to refer to browsers, and other software that sends network requests. In the HTTP protocol, a user agent identifies itself to the server using a user-agent string. The user-agent string is a string in the header of an HTTP request that identifies the browser, version, device, os, and other information about the device from which the request came.

Filter by
Sorted by
Tagged with
0 votes
0 answers
11 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 ...
claasen's user avatar
0 votes
0 answers
21 views

"'NoneType' has no len()" "Requests gets blocked

This is my code. I keep getting blocked after the 59th request. It gives the error "'NoneType' object is not subscriptable". I couldn't add a proxy. I get this error in everything I try. ...
Corewien's user avatar
0 votes
0 answers
7 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|...
Pintu lohar's user avatar
0 votes
1 answer
22 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 ...
ruwroveajaic's user avatar
0 votes
0 answers
5 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 ...
Digant Shetkar's user avatar
0 votes
0 answers
12 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 ...
KunHo's user avatar
  • 31
-2 votes
0 answers
47 views

User-Agent Based Rendering in nextjs 13 [closed]

I have two type of components one for mobile and second for desktop so waht i want i want to render component based on user device type i mean if user come from mobile device then i only want to load ...
Tausif Khan's user avatar
1 vote
2 answers
49 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....
Alan Power's user avatar
0 votes
0 answers
46 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 ...
Felix's user avatar
  • 13
-1 votes
1 answer
54 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....
Aryaman Agrawal's user avatar
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 ...
AZ Siddiqui's user avatar
1 vote
0 answers
89 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 ...
Bers Ahmad's user avatar
2 votes
0 answers
467 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 ...
lxxyeon's user avatar
  • 81
0 votes
0 answers
17 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 ...
Mohit Bhardwaj's user avatar
0 votes
0 answers
24 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 ...
th-mhmn's user avatar
  • 15
0 votes
0 answers
22 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....
Aayush Moolchandani's user avatar
0 votes
0 answers
22 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 ...
coderdark's user avatar
  • 1,481
-3 votes
1 answer
38 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 “...
user3283015's user avatar
0 votes
0 answers
17 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 ...
Matthias 's user avatar
0 votes
0 answers
214 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 ...
Simon's user avatar
  • 229
-1 votes
1 answer
68 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 ...
Maurizio Brini's user avatar
-1 votes
1 answer
31 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://...
Antonio Luna's user avatar
1 vote
0 answers
67 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 ...
E.M's user avatar
  • 11
0 votes
0 answers
43 views

Inquiry about Updates to python user-agents Library

I noticed that the last update to the python user-agents library was version 2.2.0, released on August 23, 2020. As of that version, the library was able to successfully extract valuable information ...
lohith devapatla's user avatar
0 votes
1 answer
103 views

Getting blocked while using Scrapy (With User Agent)

I am trying to scrape a casual sports-team website in my country that keeps blocking my Scrapy attempts. I have tried setting a User Agent, but without any success.. as soon as i run Scrapy, I get the ...
aman merz's user avatar
-1 votes
1 answer
51 views

differentiate requests by device expressJS

I'm using a simple expressJS app. server = app.listen(config.port, () => { logger.info(`Listening to port ${config.port}`); }); I am trying to differentiate whether multiple requests come ...
Diklou's user avatar
  • 31
0 votes
0 answers
266 views

Error undetected chrome driver and random user agents

when I use the undetected chrome driver module and at the same time I use different user agents when the browser is opened, no user agent is applied. However if I remove the undetected chrome driver ...
Joako's user avatar
  • 1
-2 votes
2 answers
75 views

PHP script to detect Chrome browser version

Is there a way to detect Chrome browser version using PHP? Basically, I'm looking for a way to detect: if Chrome version 101 and below and if Chrome version 102 and above. Is there a way to do this?...
BeePollen's user avatar
0 votes
0 answers
104 views

Detect Chromium browsers except for Brave - JS not working

I am trying to detect whether the browser is Brave, something else based on Chromium, or something not based on Chromium. However, the below HTML with the Javascript just shows up empty: <!DOCTYPE ...
ilovetables's user avatar
0 votes
2 answers
431 views

Is there a way to detect a change to the user agent information, using JavaScript?

I'd like to display different content based on window.navigator.userAgent, but it doesn't seem to be updated when you change it via a browser's devtools. I want to automatically refresh the page when ...
Enjabain's user avatar
  • 193
0 votes
0 answers
28 views

Online Reader: Text box does not display vertical text [writing-mode:vertical-rl]

I am trying to make an Online Reader for Japanese. The problem is that the Text box does not display vertical text [writing-mode:vertical-rl] Here is the index html. <!DOCTYPE html> <html ...
Tuchi Fan's user avatar
  • 101
0 votes
0 answers
32 views

https://www.tokopedia.com/ Android webView load the link return Block Web

this link: https://www.tokopedia.com/ When our browser application opened, it was redirected to the following address: https://log.tokopedia.net/blocked-webview ; Chrome can be opened normally. It is ...
Edison's user avatar
  • 1
1 vote
0 answers
329 views

Generate random client hints to match user agent in python

When sending http requests for an application I am developing, I want to use a random user agent. However, I also want to be able to send client hint request headers like 'sec-ch-ua' and 'sec-ch-ua-...
Harry Partridge's user avatar
0 votes
1 answer
37 views

How do I get the User-Agent of the client from within an endpoint resource function in the Delphi MARS REST API Library?

I've built a basic API with the MARS REST Library in Delphi and I am wondering whether there is a way to get the User-Agent of the client connecting to the endpoint in some way from the resource ...
Shaun Roselt's user avatar
0 votes
0 answers
157 views

How to set the Plugins Length to a particular value using playwright/puppeteer

I have been testing my headless = True firefox browsers using https://bot.sannysoft.com/ and playwright stealth (a playwright python port of puppeteer extra stealth) and have been struggling to ...
Jimmy J.K.'s user avatar
0 votes
1 answer
54 views

How to differentiate when the web is opened in an in-app browser or in a regular browser?

I am trying to show content based on where the web is being opened. For example if it's a normal browser then show X and if it is being opened in an in-app browser then show Y. i have tried to detect ...
Vishal's user avatar
  • 47
1 vote
1 answer
581 views

Get user-agent in getStaticProps in NextJS

we want to get user-agent in getStaticProps for logs We are adding a access and error log in our project. So in logs we want to add user-agent also. So we are using getStaticProps in our project. I ...
Abhishek Bisht's user avatar
0 votes
0 answers
157 views

How to set custom user agent and browser info in WebView2 in WPF

I am creating a WPF app which utilizes the WebView2 Component in C#. At the moment the default info sent by WebView2 to websites, in regards to user agent information is: "Mozilla/5.0 (Windows ...
WPFrobot's user avatar
1 vote
0 answers
99 views

I am trying to create an `iframe` with a fake user agent string in pure HTML page, to simulate the local site

Of course that I have read these following questions: Custom User Agent with Iframes : the most recent question, but it is designed for the Chrome extension that @fredthedoggy wanted to create. I did ...
Oo'-'s user avatar
  • 223
0 votes
1 answer
33 views

How to differentiate between userAgents?

As the title says... This is a userAgent in Safari (MacOS): Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.1 Safari/605.1.15 and then here is the ...
Nex's user avatar
  • 100
0 votes
1 answer
227 views

Audit usage of navigator.userAgent, navigator.appVersion, and navigator.platform message in the console and Selenium stops responding on Airbnb

I have a python script that logs into airbnb using selenium (chrome). It used to work perfectly fine but since Chrome updated, sometimes the driver just does not respond at all. The detailed situation ...
yeelim's user avatar
  • 1
0 votes
0 answers
45 views

Can you change the user agent of an iframe?

Here is the situation. There is a mobile site I use a lot. It's very useful. But it only works on mobile. My phone screen is a few inches across. My desktop computer has three large monitors and ...
l008com's user avatar
  • 1,735
0 votes
0 answers
63 views

Detect browser type to display browser logo and provide browser specific instructions & extension

I'm trying to detect the type of browser a user is using so I can provide browser-specific instructions and extensions. I would like something along the lines of "We think you're using Vivaldi. ...
Shoghi Simon's user avatar
-1 votes
1 answer
95 views

User Agent Not Returning Value

I am using window.navigator.useragent to detect the user agent of the device when access my website. These device including user mobile phones, tablets, and pc Some of the devices are able to display ...
reactor's user avatar
0 votes
1 answer
82 views

Programmatically Get UserAgent String from WebView2 Control in WPF

For WinForms and WinUI 3, I can use code like below to get the User Agent String of the WebView2 Control: private async void GetDefaultUserAgentString() { webViewForUaAgent = new WebView2(); ...
Greg Thatcher's user avatar
0 votes
0 answers
29 views

python requests not working with nasdaq website on AWS instance (even after adding user agent)

I am running into a similar problem as the following one (unable to get response from nasdaq): No response from `request.get()` for NASDAQ webpage After adding user-agent, it works on my computer. ...
knightyangpku's user avatar
0 votes
1 answer
334 views

New reduced user-agent in Google Chrome

After reading articles about the changes are coming for user-agent in Google Chrome, I wonder if in the new Google Chrome versions the old user-agent will keep or it will be removed from the request ...
Jose Ángel Martínez's user avatar
0 votes
1 answer
462 views

How to get the full version number of a browser with JavaScript?

In my Chrome's settings, it's showing the full version numbers: 114.0.5735.6 (Major, minor, patches, build) I tried using window.navigator.userAgent and another website like https://www....
KYin's user avatar
  • 469
0 votes
0 answers
22 views

disallowed_useragent error on "Sign in with Google"

I set up "Sign in with Google" on my website and everything works as expected on mobile and web. One user with iOS had a problem, though. He got a disallowed_useragent response and sent me ...
Alvin Sartor's user avatar
  • 2,271
1 vote
1 answer
399 views

A request made in Go lang gets blocked when Python requests and Curl works

I am making web scraper with golang, with the http package. I sent a GET request but it gets blocked by Cloudflare. I've wanted to port my tools over to Go but every time I try to, I get stuck at ...
sweet's user avatar
  • 25

1
2 3 4 5
48