In this article
The User-Agent is the string in which your browser names itself and its operating system. In practice it works worse than it seems.
What the extension changes
An extension usually replaces one or two things:
- the User-Agent header sent to the server with each request;
- navigator.userAgent, the same string as read by JavaScript on the page.
But the browser reveals much more about itself. There is navigator.platform with the OS name, Client Hints in Chrome and Edge, the set of fonts, the graphics card, the screen size and whether there is a touch screen. Finally, each browser has its own engine: Firefox, Chrome and Safari support the same features differently, and the page can see that without reading any strings.
Why spoofing gives itself away
A site doesn’t have to trust the User-Agent: it is enough to compare it with everything else. Typical mismatches:
- the string says “iPhone”, but there is no touch screen and Windows fonts are installed;
- the string says “Chrome 120”, but Client Hints report Chromium 131;
- the string says “Safari”, but the page has features that only Chrome has;
- the header carries one string and JavaScript another, because the extension changed only one of them.
Anti-fraud systems at banks, shops and social networks check this automatically. A browser that contradicts itself is rare, so instead of hiding in the crowd it stands out. A common result is extra captchas and login confirmations.
Spoofing the User-Agent doesn’t hide your IP address or encrypt your traffic. A VPN does that, and it doesn’t change your browser fingerprint: these are two different tasks.
How to check your browser
Open the Browser check. The “Does your browser contradict itself?” block compares the User-Agent in the request header and in JavaScript, the OS in navigator.platform and Client Hints, the browser engine, the language and the touch screen. Everything is compared in your browser; the results are not sent to our server.
If there are no mismatches but you installed a spoofing extension, it is currently switched off. If there are mismatches and you changed nothing, review your extensions: spoofing is sometimes added by “speed boosters” and VPN extensions.
What to do instead
- You need a site’s mobile version: use developer tools or “Desktop site” in your mobile browser instead of a permanent extension.
- You want less tracking: choose a browser with built-in fingerprinting protection.
- You need to hide your IP address and protect your traffic: turn on a VPN. You can check that the address really changed and nothing leaks on the My IP page.