AI and automation
How do websites detect automation tools?
By collecting many small signals from the browser, the network and the way the session behaves, then scoring them together. Automation frameworks leave traces at each of those levels.
The short answer
Detection scripts run inside the page and read what the browser exposes: automation flags, properties that headless or instrumented browsers get wrong, and side effects of the control protocol. Servers add what they see on the wire: TLS and HTTP/2 fingerprints, IP reputation and request patterns. Behavior across the session adds a third layer. No single check is decisive; bot detection products combine them into a score and act on the total.
Signals from the browser
Automation flags
The WebDriver standard requires navigator.webdriver to be true in automated sessions. It is the first thing most scripts check. Older ChromeDriver builds also injected recognizable variables into the page, which detection scripts searched for by name.
Control protocol side effects
Puppeteer and Playwright drive Chromium through the DevTools Protocol. Some protocol domains, once enabled, change observable behavior. A known example is how console methods serialize objects when the Runtime domain is active, which a page can notice with a crafted object. Isolated worlds and injected init scripts can leave traces too. These checks change as browsers and libraries evolve, so treat any specific technique as an example.
Headless gaps
Historic headless Chrome lacked plugins, reported "HeadlessChrome" in the user agent, had odd default window sizes and missing media codecs. The newer headless mode closed many of these gaps, but defaults such as an 800 by 600 viewport, no audio output devices or a software WebGL renderer still stand out. See headless browser detection.
Fingerprint consistency
Scripts gather canvas and WebGL output, fonts, screen metrics, hardware concurrency, time zone and languages, then check that they tell one coherent story. A user agent claiming macOS with Windows fonts, or client hints naming a different Chrome version than the user agent, is a strong signal. The fingerprinting entries, starting with browser fingerprinting, describe each source.
Signals from the network
- TLS and HTTP/2 fingerprints. The handshake reveals the client library. A request claiming to be Chrome with a Python or Go TLS stack is easy to spot. See TLS fingerprinting.
- IP reputation. Hosting ranges, known proxy exits and addresses with abuse history raise the score.
- Header order and content. Browsers send headers in characteristic orders and combinations; libraries often do not.
Signals from behavior
Over a session, sites watch timing between actions, mouse paths, scroll patterns, typing rhythm, navigation order and request volume. Automation tends to be too fast, too regular and too direct. These signals usually feed a model rather than fixed rules, so they are hard to reason about one by one.
How the verdict is used
The combined score leads to one of a few outcomes: serve normally, add an invisible check (reCAPTCHA v3, managed Turnstile), show a visible challenge (checkbox, slider, image grid, full-page check), or block outright with a 403. That is why the same script may pass on one page and get a CAPTCHA on another: sensitive endpoints use lower thresholds.
Practical consequences for permitted automation
For testing, monitoring and data collection that a site allows, the practical approach has three parts:
- Remove avoidable tells: current browser versions, consistent identity, realistic viewport and locale, good IPs, human pacing. The pages on stealth mode and behaving like a real user cover this.
- Accept that a perfect disguise is not realistic and unnecessary.
- Handle the challenges that remain with a solving step. GateSolver returns tokens and clearance cookies for reCAPTCHA, Turnstile, Cloudflare challenge pages, AWS WAF, DataDome and others, so a flagged session can continue instead of failing.
None of this changes the rules: detection exists largely to stop abuse such as credential stuffing and fake accounts, and GateSolver is not for those uses.
Common questions
What is the easiest automation signal to detect?
navigator.webdriver being true. Most detection scripts check it first.
Can sites detect Playwright and Puppeteer specifically?
They can detect side effects of the DevTools Protocol and common defaults, though specific techniques change over time.
Does a residential IP hide automation?
No. It improves the network signal, but browser fingerprints and behavior are judged separately.
Why does my script pass on some pages but not others?
Sensitive pages such as logins and checkouts use stricter thresholds for the same score.
What happens when a site is unsure?
It typically shows a challenge instead of blocking, which can be solved to continue the session.
Keep reading
- Bot detectionHow sites stack IP, header, TLS and JavaScript signals into one verdict on whether a visitor is automated.
- Browser fingerprintingScreen size, fonts, GPU, language and dozens more attributes hashed together into an identifier that survives cleared cookies.
- Fingerprint detection and AI agentsWhich headless tells fingerprinting scripts read from agent browsers, why consistency beats disguise, and what an operator can realistically control.
- What is stealth mode in browser automation?Stealth mode patches tells that give away an automated browser, like the webdriver flag and headless quirks, but not everything.