# What is navigator.webdriver?

> navigator.webdriver is a browser property that reads true when automation controls the browser. Chrome sets it for --enable-automation and --headless.

Source: https://mosaicbrowser.com/glossary/navigator-webdriver

## navigator.webdriver: the flag that says automation is driving

navigator.webdriver is a read-only browser property that is true when the browser is controlled by automation and false otherwise. Chrome sets it to true when started with --enable-automation, with --headless, or with --remote-debugging-port=0, so it is the first thing most bot checks read.

![navigator.webdriver reads false in a profile, drawn as a mosaic of tiles](https://mosaicbrowser.com/covers/navigator-webdriver.webp)

`navigator.webdriver` exists so a browser can be honest about being driven. The W3C WebDriver specification defines it, and MDN describes its purpose as "a standard way for co-operating user agents to inform the document that it is controlled by WebDriver", so a site can switch to a test code path during automation ([MDN](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/webdriver), read 2 November 2026). The specification itself notes that this is "complementary to the Evil Bit", the April Fools' RFC 3514 flag for packets with bad intent. Bot detection reads it anyway, because a browser that admits it is automated is the easiest bot to catch.

## When navigator.webdriver is true

MDN lists the cases. In Chrome, the property is true when "the `--enable-automation` or `--headless` flag is used, or the `--remote-debugging-port` flag specifying port 0 is used". In Firefox, when the `marionette.enabled` preference or the `--marionette` flag is passed.

Those flags are how most automation starts a browser. Many automation libraries pass those switches by default, which is why a script that never mentions the flag still trips it. Port 0 is a common choice because it lets Chrome pick a free debugging port itself, and it costs the same flag.

Mosaic is a desktop app

Email yourself the link and open it on your computer.

[How it works: REST API](https://mosaicbrowser.com/features/rest-api)

## What hiding it the wrong way looks like

The obvious fix is one line of page script, `Object.defineProperty(navigator, 'webdriver', { get: () => false })`. It works on the value and fails on the shape. In a real Chrome, `webdriver` is a getter on `Navigator.prototype`, not a property of the `navigator` object itself. Defining it on the instance creates an own property that a real browser does not have, and Sannysoft's WebDriver row checks exactly that ([Sannysoft explained](https://mosaicbrowser.com/guides/sannysoft-bot-test-explained) has the full table). Deleting the property is worse: every Chrome has it, so its absence is the tell.

In stock Chrome, the cleaner switch is `--disable-blink-features=AutomationControlled`. That turns off the Blink feature behind the true value, and the property stays where it belongs and reads false. It does nothing about the DevTools protocol itself, which leaves marks of its own; [CDP detection](https://mosaicbrowser.com/glossary/cdp-detection) covers the one we measured, enabling the `Runtime` domain.

## What a false value proves

Very little on its own. A page that reads false has ruled out one launch mode and nothing else, which is why detectors pair the flag with a headless check, a software-renderer check and timing ([detecting headless Chrome](https://mosaicbrowser.com/guides/detect-headless-chrome) lists them). The value is a floor. A true reading is close to proof; a false one is just the absence of an admission.

![Driving a Mosaic profile from Playwright: start it over the local API and attach to its DevTools socket](https://mosaicbrowser.com/shots/api-automation.png)
*A profile started over the API, with Playwright attached*

## How Mosaic handles it

Mosaic starts every profile with a DevTools port so its own tools can reach the page, and Tesseract Chrome is changed so that this alone does not set the flag. The change removes the branch in Chromium's `Navigator::webdriver()` that returns true when automation is switched on, and leaves the property where Chrome has it, on the prototype. A client attached over DevTools can still ask for true through the protocol's automation override; that is the client's choice. Each profile's audit includes a "navigator.webdriver is false" row. On 19 September 2026 our detector catalogue ran Sannysoft from a fresh profile beside an untouched Google Chrome on the same Mac, and both read 58 of 58 rows green.

## Sources

1. [MDN: Navigator.webdriver](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/webdriver), read November 2, 2026
2. [W3C WebDriver: Interface](https://www.w3.org/TR/webdriver2/#interface), read November 2, 2026

## Questions

### How do I check navigator.webdriver?

Open the browser's console on any page and type navigator.webdriver. A browser started normally prints false; one started by most automation tools prints true. Test pages such as bot.sannysoft.com show it as a row.

### Why is navigator.webdriver true when I did not use Selenium?

Any launch with --enable-automation or --headless sets it, and many automation libraries pass those flags by default. A debugging port opened as port 0 sets it too; a fixed port number does not.

### Does --disable-blink-features=AutomationControlled hide it?

In stock Chrome it turns off the Blink feature that makes the property return true, so the page reads false. It changes that one value; side effects of the DevTools protocol, such as an enabled Runtime domain, are still visible.

### Is navigator.webdriver true in Firefox automation?

Yes. MDN says Firefox sets it when the marionette.enabled preference or the --marionette flag is used, which is how geckodriver runs Firefox.

## Related

[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.

[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.

[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.

[How to use Playwright with an anti-detect browser](https://mosaicbrowser.com/guides/use-playwright-with-an-anti-detect-browser): Use Playwright with an anti-detect browser by starting the profile first and attaching with connectOverCDP. Keep its context; leave the fingerprint alone.

[Selenium detection: the marks ChromeDriver leaves in a page](https://mosaicbrowser.com/glossary/selenium-detection): Selenium detection is how a site spots a browser driven by Selenium: navigator.webdriver, the globals ChromeDriver adds, headless tells, DevTools traces.





[How to use Puppeteer with an anti-detect browser](https://mosaicbrowser.com/guides/use-puppeteer-with-an-anti-detect-browser): Use Puppeteer with an anti-detect browser through puppeteer.connect: start the profile, pass its wsEndpoint, set defaultViewport to null, then disconnect.

## See navigator.webdriver 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.
