Top "User-agent" questions

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

A User Agent that says just "Mozilla/4.0" is a bot, right?

I'm getting several requests in web apps that are basically wrong in ways my code shouldn't be generating... Mainly it's …

security user-agent bots
Strange User Agent With Google Chrome

I was working with some javascript and found a strange user agent with my Google Chrome. I have Google Chrome 7.0.517.41 …

javascript user-agent
How to detect touch device browsers vs desktop using javascript?

What is the code to detect touch devices (smartphones and tablets) vs desktops browsers using userAgent.match and return a …

javascript user-agent browser-detection device-detection
HttpWebRequest.UserAgent : What does it do

I read this MSDN like about it and ran its example. http://msdn.microsoft.com/en-us/library/system.net.httpwebrequest.…

.net httpwebrequest system.net user-agent
Rspec: how to spec request.env in a helper spec?

In my helper module, I have: def abc(url) ... if request.env['HTTP_USER_AGENT'] do something end end In …

ruby-on-rails rspec request user-agent specifications
How can I fool a site that looks at the JavaScript object 'navigator' to see that I'm not on Windows?

I am trying to browse a website, however, it only works under Windows and Mac because they use the navigator.…

javascript browser user-agent
RESTful API: require user agent string?

My team has a web site with a RESTful API. We're is working on load testing it, so we've built …

rest user-agent
Simple Smart Phone detection

Ok I've seen a couple of mobile detection scripts that look to identify all mobile handsets, anyone come up with …

php user-agent jquery-mobile smartphone mobile-devices
Why does IE 8 navigator.userAgent return MSIE 7.0?

I am trying to implement a browser support feature on my webpage. For Firefox 3.6 it is working fine, but for …

javascript html internet-explorer-8 user-agent navigator
Tell iPadOS from macOS on the web

The user agent of Safari on iPadOS beta is at this point exactly the same as Safari on macOS. Is …

macos safari mobile-safari user-agent ipados