Top "User-agent" questions

A user agent is a piece of software (a software agent) that acts on behalf of a user.

Ajax request: Refused to set unsafe header

I am trying to play an audio using Google Text-To-Speech. Therefore I need to post a request to their endpoint …

javascript ajax user-agent http-referer
Set useragent in WKWebview

How do I set a custom useragent string in a WKWebView? I'm trying to embed the version of my app …

ios user-agent wkwebview
What does "KHTML, like Gecko" mean in a user-agent string?

I understand that KHTML is the HTML Layout Engine used, but what significance does the "like Gecko" part have? Why …

user-agent gecko layout-engine
Simple way to identify iOS user agent in a jQuery if/then statement?

Exactly like it sounds.. Is there some magical and easy way to say: if (user agent is iOS) { if (browserRatio &…

jquery ios if-statement user-agent
PHP Undefined index: HTTP_USER_AGENT

The following code validates the user agent accessing the site however I am getting the error. What do I need …

php user-agent
IE 11 sends different User-Agent header to different subdomains

Well, I've been working on an User-Agent based shared-session protection between subdomains. I was extremely surprised that it's been working …

internet-explorer http http-headers user-agent internet-explorer-11
How to detect Browser type in Django?

How can i detect which browser type the client is using. I have a problem where i have to ask …

django django-forms http-headers user-agent
Scrapy Python Set up User Agent

I tried to override the user-agent of my crawlspider by adding an extra line to the project configuration file. Here …

python scrapy web-crawler screen-scraping user-agent
What is the standard format for a browser's User-Agent string?

Is there an RFC, official standard, or template for creating a User Agent string? The iphone's user-agent string seems strange... …

user-agent
How to detect "Google Chrome" as the user-agent using PHP?

I'm interested to know whether the user-agent is "Chrome" at the server end using PHP. Is there a reliable regular …

php regex google-chrome user-agent browser-detection