How a Site Sees Your Real Operating System When the User-Agent Lies

What a site can read besides the User-Agent line: the connection, the TCP stack and the hardware. How a mismatch looks, why a proxy causes it and how to check your own setup in five minutes.

Published 3 min read
Three glowing layers that do not line up, like a User-Agent that disagrees with the connection

The User-Agent is a line of text your browser sends with every request, and it can say anything. One setting or one extension, and a Linux machine introduces itself as Windows. So a site that really wants to know what it is talking to does not stop at that line.

Three places that can disagree

What the browser claims. The User-Agent and the newer Client Hints. The My User-Agent page shows the same string read in three places: in JavaScript, in the HTTP header and in a Web Worker. They should be identical. If they are not, something is rewriting one of them.

What the connection looks like. The TCP stack, the TLS handshake and the HTTP/2 settings come from the operating system and the network library, not from the page, so a User-Agent setting does not touch them. Windows usually starts packets with a TTL of 128, Linux and macOS with 64, and every stack orders its TCP options in its own way. You can see yours on the TCP/IP, TLS and HTTP/2 pages.

What the hardware says. The graphics card, the screen, the number of cores and the memory come from browser APIs. A faked profile has to keep all of them consistent with each other and with the claimed system.

What a mismatch looks like

Four light strips, one of them shorter than the others

Open What device am I using. It lists the system the browser claims next to the system measured from the connection, with a check mark when they fit and an exclamation mark when they disagree. If the browser says Windows 11 and the TCP stack says Linux, the page shows exactly that.

Do not read it as a lie right away. A very common reason is plain: your traffic goes through a proxy or a VPN server, and the site sees that server's TCP stack, not your computer's. When the stack cannot be measured at all, the page leaves the mark empty instead of guessing.

Check your own setup in five minutes

A fingerprint drawn with thin glowing green lines

  1. Open My User-Agent and see whether the three readings match.
  2. Open My device and look for exclamation marks.
  3. If you work with several browser profiles, run a scan, press Compare / Snapshot and open the link it gives you in another browser, profile or machine. The two profiles appear side by side with a similarity verdict.
  4. Run the behavior test if you are curious how a session looks from the other side: it records your own mouse, clicks, key timings and scrolls and plays them back.

What this does not prove

The device model is the most likely match for your hardware and screen, not a serial number, and phones are recognized more precisely than desktop PCs. Only popular devices are identified reliably, and I do not promise anything for exotic ones. A mismatch is a signal, not proof, and the scores are estimates.

More from the same project

How the checker started is written up on dev.to, and a separate piece on what a page can learn about your home network is on Hashnode. On this blog: the browser fingerprint and the WebRTC IP leak.

If a page here explains something badly or gets your setup wrong, tell me through the contact form in the footer and say what exactly it showed.

Check what your browser gives away

Run the free fingerprint test: canvas, WebGL, fonts, WebRTC, TCP/IP and TLS, checked for consistency on our server.

Run the test