A User-Agent is an HTTP request header that lets servers identify the application, operating system, vendor and version of the client making the request. The W3C lists the User-Agent header as a passive fingerprinting source, since it is sent with HTTP requests.
A typical User-Agent string looks like Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36..., identifying a specific browser version and platform.
User-Agent Reduction and Client Hints
- Reduced strings: Chrome now freezes parts of its User-Agent. The minor version shows as
0.0.0, desktop platforms use fixed tokens such asWindows NT 10.0; Win64; x64, and Android reportsAndroid 10; Kwhatever the real OS version and device model. The Android rollout reached all Chrome 110+ users in May 2023. - Client Hints: Browsers can send low-detail headers such as
Sec-CH-UA(major version and brand),Sec-CH-UA-MobileandSec-CH-UA-Platformby default. A server asks for more detailed hints, such as the device model, with theAccept-CHresponse header. MDN says client hints are expected to eventually replace parsing the User-Agent string.
Verifying Bots That Claim a User-Agent
A request can claim to be any crawler in its User-Agent header. For visitors claiming to be from Google, Google tells site owners to run a reverse DNS lookup on the IP address, check that the domain is googlebot.com, google.com or googleusercontent.com, then confirm with a forward lookup. For large-scale checks, they can compare the IP against Google's published crawler IP ranges.