# What is headless browser detection?

> Headless browser detection is how a site tells a browser with no window, usually under automation, from one a person uses. Here is what it reads.

Source: https://mosaicbrowser.com/glossary/headless-browser-detection

## Headless browser detection: how sites spot a browser with no screen

Headless browser detection is a site checking whether the browser visiting it runs without a visible window, which usually means a script is driving it. It reads what headless modes change: the User-Agent token, navigator.webdriver, a software GPU, and traces of the DevTools Protocol.

![Headless browser detection, drawn as a mosaic of tiles](https://mosaicbrowser.com/covers/headless-browser-detection.webp)

A headless browser is a real browser engine running with no window: it fetches pages, runs their scripts and builds the DOM, and a program reads the result. Test suites, PDF renderers and crawlers all depend on it. Sites want to know when one visits because a browser nobody is looking at is, almost by definition, a script.

## How headless browser detection works

Detection reads the places where headless mode differs from a person's browser. None of them is proof alone, so detectors score several together.

The User-Agent comes first. On a stock Chrome 152 with no other flags we measured:

```
headed    Mozilla/5.0 (…) Chrome/152.0.0.0 Safari/537.36
headless  Mozilla/5.0 (…) HeadlessChrome/152.0.0.0 Safari/537.36

```

The browser names itself, on every request and in `navigator.userAgent`. Overriding the string has a cost: Chrome then empties high-entropy client hints such as `architecture`, and blank hints beside a Chrome User-Agent are their own signal.

Then the graphics. Headless Chrome drops the real GPU, so WebGL reports a software renderer such as SwiftShader where a laptop would name its chip. Then automation flags: [`navigator.webdriver`](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/webdriver) is true in a browser started for WebDriver, headed or not. And then the DevTools Protocol that nearly every headless run is driven through. A client that sends `Runtime.enable`, as Playwright and Puppeteer do, leaves timing traces a page can measure, covered in [CDP detection](https://mosaicbrowser.com/glossary/cdp-detection).

Old and new headless are different targets. Google's [headless documentation](https://developer.chrome.com/docs/chromium/headless) says Chrome "now has unified Headless and headful modes", and that since Chrome 132.0.6793.0 the old mode "is only available as a standalone binary named chrome-headless-shell". The old shell differs from Chrome in many more places, so it is the easier one to catch.

Mosaic is a desktop app

Email yourself the link and open it on your computer.

[How it works: Warm-up robot](https://mosaicbrowser.com/features/warm-up)

## Headless versus automated

The two words get mixed up, and the difference matters when you read a verdict. Headless is about the window. Automated is about who is driving. A headed Chrome under Selenium is automated and not headless. A headless Chrome started by hand to print a PDF is headless and not automated. Most detectors are after the second, and use headless traits as cheap evidence of it. The step-by-step checks, with the code for each, are in [how to detect headless Chrome](https://mosaicbrowser.com/guides/detect-headless-chrome).

## How to see what a detector sees

Public pages bundle these checks. [bot.sannysoft.com](https://mosaicbrowser.com/guides/sannysoft-bot-test-explained) prints a table of User-Agent, webdriver, WebGL and plugin results. Run your browser through it once headed and once headless, and compare the rows that change.

## Our own headless mistake

Mosaic's [warm-up robot](https://mosaicbrowser.com/features/warm-up) browses a profile so it has history and cookies before it meets the site that matters. For a while it ran headless by default, because that kept the windows out of the way. It also meant every site the robot visited was told `HeadlessChrome`, through a launcher rule that skipped the User-Agent override when the profile's string matched the engine's own. The best-configured profiles were the ones announcing themselves. Warm-up was writing a bot's history into the cookie jar and calling it a reputation, which is worse than not warming up.

So the rule now is that background work uses the same browser the profile uses. Warm-up, audits and leak tests run headed, in a window parked off-screen: same renderer, same User-Agent, no token. Mosaic is a desktop app; it does not run as a headless server.

![The Mosaic sidebar with profiles running, each with its own window](https://mosaicbrowser.com/shots/running.png)
*Profiles run headed, each in its own window*

## How Mosaic's engine handles the rest

Tesseract Chrome, our own Chromium, handles the signals above inside the engine. The headless product name reads `Chrome`, not `HeadlessChrome`. `navigator.webdriver` is not forced true by the automation switch. And when Mosaic drives a page itself, through the REST API or MCP, it never enables `Runtime`; it works in an isolated world and sends clicks and keys as trusted input with human timing. On deviceandbrowserinfo.com's bot test, in our measurement, `Runtime.enable` alone turned the verdict to isBot=true, and an isolated world with evaluate left it at isBot=false. What any site allows automation to do is still that site's call.

## Sources

1. [Chrome for Developers: Chrome Headless mode](https://developer.chrome.com/docs/chromium/headless), read November 2, 2026
2. [MDN: Navigator.webdriver](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/webdriver), read November 2, 2026

## Questions

### What is a headless browser?

A browser that runs with no window on screen. It loads and runs pages like a normal browser and is driven by a program, which is why it is used for testing, scraping and screenshots.

### Can websites tell if I am using headless Chrome?

Often, yes. By default the User-Agent says HeadlessChrome, and headless runs commonly report a software graphics renderer. Removing those leaves automation traces such as navigator.webdriver and DevTools activity.

### Is new headless mode harder to detect than old headless?

Google says new headless shares the full browser's code, while the old mode is now a separate binary. Sharing code removes many differences, but the User-Agent token and the missing GPU remain unless they are changed.

### Is it wrong to use a headless browser?

No. Headless browsers run test suites and PDF rendering everywhere. What a site allows automated browsers to do is set by its own terms, and detection is how it enforces them.

## Related

[How to detect headless Chrome: the signals that hold up](https://mosaicbrowser.com/guides/detect-headless-chrome): How to detect headless Chrome: it names itself in its User-Agent, drops the real GPU and is usually driven over DevTools. The checks that hold up.

[CDP detection: how a page notices DevTools is driving it](https://mosaicbrowser.com/glossary/cdp-detection): CDP detection is a page noticing that the Chrome DevTools Protocol is driving the browser, usually because Puppeteer or Playwright enabled Runtime.

[Bot detection: how a site decides a visitor is software](https://mosaicbrowser.com/glossary/bot-detection): Bot detection is how a site scores whether a request comes from a person or from software, using the network, the browser, automation traces and behaviour.

[A browser profile warm-up robot that uses real input](https://mosaicbrowser.com/features/warm-up): Mosaic's browser profile warm-up robot visits eight ordinary sites in a new profile's own browser, behind its own proxy, scrolling with a real wheel.

[Sannysoft bot test explained, row by row](https://mosaicbrowser.com/guides/sannysoft-bot-test-explained): bot.sannysoft.com checks webdriver, window.chrome, plugins, languages, WebGL and a broken image for signs of a headless browser. What each row tests.

[Prototype tampering detection: catching a faked browser API](https://mosaicbrowser.com/glossary/prototype-tampering-detection): Prototype tampering detection checks browser APIs for signs a script replaced them: wrong names, extra properties, non-native source, Proxy errors.





[How to change the user agent in Chrome, and what it breaks](https://mosaicbrowser.com/guides/change-user-agent-in-chrome): How to change the user agent in Chrome with DevTools, a launch flag or an extension, and why none of them changes the client hints to match.

## See headless browser detection on a real profile

Mosaic shows the values a site reads, per profile, and runs a leak test from inside the profile’s own page. Free covers 3 profiles with no card, and Pro is $25 a month for any number of them.

Mosaic is a desktop app

Email yourself the link and open it on your computer.
