The User-Agent is an HTTP request header in which the client names itself, usually with the browser, its version and the operating system. MDN’s example for Chrome on Windows:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Safari/537.36
The header is defined in RFC 9110 and documented on MDN. Bots that identify themselves put their name here, such as Googlebot or GPTBot.
Less detail than before
Browsers have cut the detail in the string to make it less useful for fingerprinting. Chrome’s reduced User-Agent shows only the major version, with zeros for the rest, and fixed values for some platform details: on Android, the device model is always K. Sites that need more ask for it with User-Agent Client Hints.
How bot detection uses it
The User-Agent is a claim, and any client can send any string. Scripts copy a current browser’s value, and attackers impersonate well-known crawlers because sites tend to let them in. So detection treats the header as something to check:
- Does the TLS fingerprint belong to that browser?
- Do the Client Hints, JavaScript
navigatorvalues, fonts and GPU fit the claimed operating system? - If it claims to be a crawler, does it pass verification by IP range, reverse DNS or Web Bot Auth signature?
A mismatch is a stronger signal than any particular string. Library defaults such as python-requests or curl, empty values and long-outdated browser versions are the easy catches.
See what your own browser sends with the browser fingerprint test.
See yours, and parse any other, with the user agent checker.