User agent string
The text the browser sends naming its browser, version and operating system.
In one line
Can see your browser, version, and operating system from the text it sends
The text the browser sends naming its browser, version and operating system.
Says which browser, version and OS the person uses. Chrome has been reducing detail since 2022, but the string still gates features, and LinkedIn's extension probe only runs when it contains Chrome.
What it can and can't do
What the user does: Nothing. Your browser sends it with every page request
It can
- See your browser brand and version
- See your OS family
- Turn features on or off to match
- Spot likely bots from odd text
It cannot
- See exact OS build or device model; Chrome trims the detail
- Be sure; you or an add on can change it
- See your name, location, or accounts
- Learn anything private by itself
Browser support
| Browser | Status | First version | Released | Note |
|---|---|---|---|---|
| Chrome | Supported | 1 | 2008-12-11 | None |
| Edge | Supported | 12 | 2015-07-29 | None |
| Firefox | Supported | 1 | 2004-11-09 | None |
| Safari | Supported | 1 | 2003-06-23 | None |
| Safari on iPhone | Supported | 1 | 2007-06-29 | None |
| Chrome on Android | Supported | 18 | 2012-06-27 | None |
| Samsung Internet | Supported | 1.0 | 2013-04-27 | None |
How a site asks for it
| API | navigator.userAgent; User-Agent header; UA Client Hints |
| Browser compat keys | api.Navigator.userAgent |
| How access is granted | none |
| What the user sees | None (no browser prompt) |
| Needs a secure context (HTTPS) | No |
| Needs a user gesture | No |
| How long it lasts | Not listed |
| How to take it back | Not listed |
| Inside an iframe | Not listed |
Typical flow
- Script reads the value
- Value joins the fingerprint payload
Data you get
What comes back: User agent string
Shape: string
How often: static per browser version
| Field | Type | Unit | Range | Precision |
|---|---|---|---|---|
userAgent | string | None | up to 1500 chars collected | reduced in Chrome 101 to 110 |
Technical limits
- Reduced in Chrome (UA Reduction)
- Can be changed by users and extensions
The story
What it is
The text your browser sends naming its browser, version and operating system.
For you
You never see it, but your browser sends it with every request. It is why a site knows you are on Safari on an iPhone and shows the right version of the page.
For makers
It is the oldest way to tell browsers apart and still decides which code and features a site sends. Bot defence and analytics use it, even though it is easy to fake. Chrome now gives less detail than it once did.
Where you see it
| Type | Example | Apps |
|---|---|---|
| developer | A site sends an older script file to an old browser it recognises from the string. | None named |
| games | A browser game portal shows a note that a browser cannot run WebGL games well. | Poki |
| video | A streaming site picks a player that works in the visitor's browser. | Netflix |
| security | A bot defence service blocks clients whose strings name known scraping tools. | Cloudflare |
| analytics | A dashboard counts visits by browser and version. | Google Analytics |
| ads | An ad platform checks strings to filter out crawlers and fake traffic. | DoubleVerify |
| social | A professional network reads the string and extension clues to catch tools that scrape profiles. |
Risks
- Easy to fake
- Reveals browser and OS
What the platform says
- Google: User-Agent reduction. Chrome has been trimming the string to give out less detail and moving the rest to client hints.
Good uses and abuse
Legitimate uses
- Compat
- Analytics
Known abuse
- Fingerprint input
Scores
| Score | Value | Meaning |
|---|---|---|
| Sensitivity | 2 of 5 | How revealing the data is |
| Utility | 3 of 5 | How useful it is to honest apps |
| Friction | 0 of 5 | How much the user has to do |
| Fingerprint bits | 8 | Rough identifying entropy, when known |
A real example: LinkedIn
Collector key(s): userAgent. Also used as a gate: the AED probe runs only if the string contains 'Chrome'.
History
- 2022, Chrome 101: User Agent Reduction begins
- 2023, Chrome 110: Reduced string rolls out more broadly (approx)
Related capabilities
Related
- APFC / DNA device fingerprint (abuse prevention features). Can collect about 48 device traits and send them in secret with later requests
Sources
How well checked: Based on official documentation.