Glossary
Client hints: structured browser data in Sec-CH-UA headers
User-Agent Client Hints are a set of HTTP request headers, starting with Sec-CH-UA, that Chromium based browsers use to share browser, platform and device details in a structured way.
Definition
Client hints were introduced to replace the long, information heavy User-Agent string with smaller pieces a site can ask for. By default the browser sends only a few low entropy hints. A site that needs more, for example the full version or the device model, has to request it with an Accept-CH response header, and the browser then includes the extra hints on later requests. The same data is available to scripts through navigator.userAgentData.
The headers
| Header | Sent by default | Contains |
|---|---|---|
Sec-CH-UA | Yes | Brand list with major versions |
Sec-CH-UA-Mobile | Yes | ?0 for desktop, ?1 for mobile |
Sec-CH-UA-Platform | Yes | OS name, such as "Windows" |
Sec-CH-UA-Full-Version-List | On request | Brands with full versions |
Sec-CH-UA-Platform-Version | On request | OS version |
Sec-CH-UA-Arch, -Bitness | On request | CPU architecture and bitness |
Sec-CH-UA-Model | On request | Device model, mainly on Android |
The brand list and GREASE
A typical Sec-CH-UA value lists several brands, for example Chromium, the browser's own brand, and a deliberately odd placeholder such as "Not_A Brand";v="8". The placeholder, part of a practice called GREASE, changes in name and position between releases so that sites cannot parse the header with brittle exact matching. A script that copies one hard coded value forever will drift away from what current browsers send.
Which browsers send them
Chromium based browsers send client hints on secure connections. Firefox and Safari did not support them at the time of writing, so a request claiming Firefox should arrive without them. Sending Sec-CH-UA headers alongside a Firefox User-Agent is itself an inconsistency. Check current browser support before relying on this.
Consistency with the User-Agent
Detection systems compare hints with the header and with JavaScript values:
- The major version in
Sec-CH-UAshould equal the one in the User-Agent. Sec-CH-UA-Platformshould match the platform in the User-Agent andnavigator.platform.Sec-CH-UA-Mobileshould match the device type, screen size and touch support.- High entropy hints, when requested, should agree with the low entropy ones.
A failure on any line is a mismatched user agent signal.
Reading hints from a page
In a Chromium console, navigator.userAgentData.brands shows the brand list and navigator.userAgentData.getHighEntropyValues(["platformVersion", "fullVersionList"]) resolves to the detailed values. Comparing that output between your automated browser and a regular one is the fastest way to confirm the hints you send are believable.
Handling client hints in automation
Real browsers
Chrome driven by Playwright or Puppeteer sends correct hints automatically. If you override the User-Agent in a context, check that the hints follow; some frameworks let you pass matching metadata, others leave the original values in place.
HTTP clients
If a script presents itself as Chrome, add the three default hints with values that fit the claimed version and platform, in the order Chrome sends them. If it presents itself as Firefox, leave them out.
Client hints and CAPTCHA widgets
Widgets like reCAPTCHA v3 and Cloudflare Turnstile collect hints as part of their signals. When your session's hints disagree with its header, scores drop and challenges grow harder. A solver answers the widget independently, and GateSolver charges only for solved tasks, but the answer is then used inside your session, which still carries your hints. Keeping them consistent makes each answer more likely to be accepted. Related reading: user agents for scraping.
Common questions
Do all browsers send Sec-CH-UA headers?
No. Chromium based browsers do; Firefox and Safari did not at the time of writing, so check current support.
Why does Sec-CH-UA contain a strange fake brand?
It is a GREASE placeholder that changes between releases to stop sites from relying on exact string matches.
How does a site get high entropy hints?
It sends an Accept-CH response header naming them, and the browser includes them on following requests.
Should a Python script send client hints?
Only if it claims to be a Chromium browser, and then with values that match its User-Agent.
Can JavaScript read client hints?
Yes, through navigator.userAgentData, with high entropy values available through getHighEntropyValues().
Keep reading
- User agentThe User-Agent header, how a Chrome string is put together, and how client hints now carry part of the same data.
- Mismatched user agentWhen the header, client hints, TLS handshake and in-page JavaScript describe different browsers, and why that draws challenges.
- HTTP headerThe name and value lines sent with every request and response, and the handful that bot checks inspect most closely.
- Picking user agents for scrapersHow to choose, maintain and rotate user agent strings so a scraper reads as a current, ordinary browser.