Skip to Content
Platform.Ontology

User agent string

The text the browser sends naming its browser, version and operating system.

Gets silentlyDevice detailsBrowser identityWeb browsersWhen the page loadsWhile you use it

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

BrowserStatusFirst versionReleasedNote
ChromeSupported12008-12-11None
EdgeSupported122015-07-29None
FirefoxSupported12004-11-09None
SafariSupported12003-06-23None
Safari on iPhoneSupported12007-06-29None
Chrome on AndroidSupported182012-06-27None
Samsung InternetSupported1.02013-04-27None

How a site asks for it

APInavigator.userAgent; User-Agent header; UA Client Hints
Browser compat keysapi.Navigator.userAgent
How access is grantednone
What the user seesNone (no browser prompt)
Needs a secure context (HTTPS)No
Needs a user gestureNo
How long it lastsNot listed
How to take it backNot listed
Inside an iframeNot listed

Typical flow

  1. Script reads the value
  2. Value joins the fingerprint payload

Data you get

What comes back: User agent string
Shape: string
How often: static per browser version

FieldTypeUnitRangePrecision
userAgentstringNoneup to 1500 chars collectedreduced 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

TypeExampleApps
developerA site sends an older script file to an old browser it recognises from the string.None named
gamesA browser game portal shows a note that a browser cannot run WebGL games well.Poki
videoA streaming site picks a player that works in the visitor's browser.Netflix
securityA bot defence service blocks clients whose strings name known scraping tools.Cloudflare
analyticsA dashboard counts visits by browser and version.Google Analytics
adsAn ad platform checks strings to filter out crawlers and fake traffic.DoubleVerify
socialA professional network reads the string and extension clues to catch tools that scrape profiles.LinkedIn

Risks

  • Easy to fake
  • Reveals browser and OS

What the platform says

Good uses and abuse

Legitimate uses

  • Compat
  • Analytics

Known abuse

  • Fingerprint input

Scores

ScoreValueMeaning
Sensitivity2 of 5How revealing the data is
Utility3 of 5How useful it is to honest apps
Friction0 of 5How much the user has to do
Fingerprint bits8Rough 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)

Sources

How well checked: Based on official documentation.

On this page