---
site: steel.dev
collection: blog
canonical_url: https://steel.dev/blog/what-is-bot-detection
markdown_url: https://steel.dev/blog/what-is-bot-detection.md
content_signal: ai-input=yes, ai-train=yes, search=yes
related:
  - https://steel.dev/blog/how-browser-fingerprinting-works.md
  - https://steel.dev/blog/how-to-choose-browser-automation-api.md
  - https://steel.dev/blog/what-is-browser-as-a-service.md
title: What is bot detection? How websites identify automated browsers
description: Learn how bot detection scores network, TLS, HTTP header, browser fingerprint, and behavior signals, and why legitimate AI agents get flagged.
date: 2026-11-27
authors:
  - Hussien Hussien
category: Guides
minutes: 14
tldr: Bot detection is a layered risk-scoring system that checks network, TLS, HTTP, browser fingerprint, and behavioral signals for consistency. Legitimate AI agents get flagged when signals conflict across layers. For authorized automation, the fix is consistent signals, stable session state, site owner permission, and observability.
topics:
  - Bot detection
  - Browser fingerprinting
  - TLS fingerprinting
  - Anti-bot protection
  - Session state
  - AI agents
entities:
  - Steel
  - Cloudflare
  - Cloudflare Bot Management
  - Playwright
  - Puppeteer
  - Selenium
  - Salesforce
  - JA3
  - JA4
  - Chrome
answers_questions:
  - How do websites detect automated browsers?
  - Can bot detection tell Playwright from a real browser?
  - Why does a script work locally but fail in production?
  - What is a browser fingerprint?
  - How can teams tell a network problem from a site block?
faqs:
  - question: How do websites detect automated browsers?
    answer: Websites evaluate signals such as TLS fingerprints, HTTP header order, known automation libraries, request behavior, and browser JavaScript detections. Each layer is a consistency check. If signals are inconsistent with each other or with real browser behavior, the site flags the request as likely automated.
  - question: Can bot detection tell Playwright from a real browser?
    answer: "Bot detection cannot reliably tell Playwright from a real browser based on TLS alone, because Playwright and Selenium drive real browser builds and the JA3 matches the browser actually running. Detection systems flag inconsistent usage instead: fingerprints that change between requests, session state that is not preserved, or a varying network context."
  - question: Why does a script work locally but fail in production?
    answer: "Local and production environments differ across several signal layers: TLS library version, IP address, browser version, GPU, installed fonts, system timezone, and session state. When these signals are inconsistent between environments, the detection system can flag the mismatch."
  - question: What is a browser fingerprint?
    answer: A browser fingerprint is created using a combination of User-Agent strings, plugins, fonts, and screen resolution, with [83.6% of browsers being unique](https://coveryourtracks.eff.org/static/browser-uniqueness.pdf) across a large dataset in Eckersley's 2010 study. The fingerprint identifies the browser across sessions and verifies that the browser's reported configuration matches its actual behavior.
  - question: How can teams tell a network problem from a site block?
    answer: "Check the response body, the session recording, and the Steel session signals together. A `proxy_connection_failed` signal points to a network problem, `bot_detection_triggered` means a page ended on an anti-bot block or challenge the browser didn't get past, and `captcha_encountered` means Steel detected a CAPTCHA. Treat status codes as clues rather than proof: a 5xx or timeout often points to the network but can also come from the site, a 403 can come from an ordinary access policy, a 429 means rate limiting, and a 200 can still contain a challenge page. Signals are heuristic, so an empty signal list doesn't prove nothing happened."
---

# What is bot detection? How websites identify automated browsers

Bot detection refers to the methods web services use to decide whether a client is a human user or an automated browser. The term covers every layer of the request path: the network address, the TLS handshake, the HTTP headers, the browser fingerprint, and the behavior over a session. Sites combine signals from all five into a risk score, and legitimate AI agents get flagged when those signals conflict.

This article walks the full request path in order, treating each layer as a consistency check, and ends with a diagnostic framework that separates network failures from site blocks.

## How modern websites identify automated traffic

Modern bot management combines machine learning and behavioral analysis across network signals, device characteristics, behavior patterns, and challenge mechanisms, so no single check decides a request. [Cloudflare Bot Management](https://www.cloudflare.com/learning/bots/what-is-bot-management/) scores every request from 1 to 99, where 1 means a request is likely automated and 99 means it is likely human. Scores and thresholds are proprietary, and vendors change them over time.

Detection and mitigation are separate. Detection identifies automation, and mitigation decides what to do about it: challenge, rate limit, block, or allow.

### How detection systems score signals together

Detection systems use machine learning, heuristics, and JavaScript detections to score requests. User agent, IP reputation, ASN, and TLS fingerprint feed that scoring process. A single weak signal does not block a request. The system scores all signals together and applies mitigation when the combined score crosses a threshold.

### How sites calculate risk scores

The score is the consolidated verdict of multiple detection engines working in parallel. Vendors publish the score range, not the weighting behind it. An engineer can read the range and plan a workflow around it, but cannot read the rules that move a score up or down.

| Detection layer | Signal type | Typical symptom for agents | What to inspect |
| - | - | - | - |
| **Network** | IP reputation, ASN, proxy patterns | Site flags residential proxy, blocks datacenter IP | Proxy provider quality, IP rotation frequency |
| **TLS handshake** | JA3/JA4 fingerprint, cipher suite order, extensions | Request sent but marked as bot, mismatch with User-Agent | TLS library mismatch, curl or requests used instead of real browser |
| **HTTP headers** | Accept-Language, header order, missing headers | Identical headers on every request type, no header variation | Browser library not matching real browser header order |
| **Browser fingerprint** | Canvas hash, WebGL renderer, screen resolution, timezone | JavaScript challenges fail, fingerprint inconsistency detected | Headless Chrome default settings, inconsistent GPU/driver signature |
| **Behavior** | Scroll speed, click timing, page interaction, session duration | Interaction too fast or robotic, no human-like delays | Missing wait times, no mouse movement, no time on page |

Teams running Playwright or Puppeteer can self-host their browser infrastructure and retain full control. That approach works, and it keeps the browser and session model on the team's own terms. The team then owns proxies, CAPTCHA solving, session health monitoring, fingerprint consistency across the fleet, scaling logic, and diagnostic tooling. Steel provides managed browser infrastructure so teams can focus on agent logic instead of browser operations.

## Decoding the anti-automation pipeline

### Tracing the request lifecycle

A request travels from the browser through the network to the server. Detection happens at each point:

1. **Before TLS**: The site sees the IP address, looks it up against reputation databases, and scores it.

2. **During TLS handshake**: TLS fingerprinting identifies the client from the handshake itself, before a single HTTP header is read.

3. **In HTTP headers**: The site reads User-Agent, Accept-Language, header order, and other metadata.

4. **On the page**: JavaScript APIs check whether a given API is implemented and returns the results expected from a normal browser, rendering WebGL scenes and using the Canvas API.

5. **Over time**: The site tracks whether the browser behaves like a human, watching for rapid sequences, unnatural pauses, or missing interaction patterns.

Each layer is independent, but they are scored together. A single inconsistency can push a legitimate session's risk score past the threshold for a challenge or block.

### How sites track browser fingerprints

Browser fingerprinting combines signals such as canvas hash, WebGL renderer, screen resolution, timezone, fonts, and navigator properties into a unique identifier that persists across sessions. Anti-bot systems rarely evaluate canvas alone. They check consistency across all signals. If the same canvas hash appears across many unrelated sessions, or the WebGL renderer does not match the reported GPU, the system flags it.

## Why network fingerprints trigger bot blocks

TLS fingerprinting lets security teams track the same bot or malware across thousands of different IPs because clients built on the same TLS library tend to produce the same fingerprint. A datacenter IP is a risk signal by itself. A residential IP with high reputation is a lower-risk signal.

### Why residential IPs reduce blocks

A residential IP is associated with a person's home network and has less bot history. Paired with a consistent fingerprint and consistent session state, such as cookies and stored settings, it looks like a returning user. [Managed residential proxies](https://steel.dev/docs/stealth/proxies) reduce IP-based blocks by routing sessions through addresses with clean reputations.

### Detecting bots via network patterns

Anti-bot systems track the same TLS fingerprint across different IPs, and a hash that shows up from many IPs in a short window can be flagged as bot traffic. The system also scores IP velocity, flagging a single IP that requests pages far faster than a person could read them, while low, steady request rates blend in with ordinary browsing.

## How TLS fingerprinting detects bots

Salesforce [published JA3 in 2017](https://github.com/salesforce/ja3), and it is used in Suricata, Zeek, and many commercial anti-bot products. TLS fingerprinting inspects the handshake to identify clients based on TLS version, cipher suites, extensions, and elliptic curve preferences. This data compiles into an identifier, like a JA3 or JA4 hash, that helps distinguish real browsers from automation tools, bots, or malware.

### TLS handshake patterns in bot detection

JA3 extracts five key fields: TLS version, cipher suites, extensions, elliptic curve groups, and elliptic curve point formats. Each TLS library builds the ClientHello differently, so Chrome, Python requests, and curl tend to produce different fingerprints.

The match isn't one-to-one: many clients running the same software and configuration share a fingerprint, and Chrome randomizes the order of its TLS extensions, so its JA3 can change from one connection to the next. JA4 handles this by sorting the extensions before hashing. A TLS fingerprint helps characterize a client's software or configuration, but it doesn't identify a unique browser or person.

### How JA3 signatures expose bot traffic

A common pattern is a client that sends a Chrome User-Agent while its TLS signature matches Python requests. The system flags the mismatch.

JA3 produces a single MD5 hash that is difficult to analyze manually. [JA4](https://github.com/FoxIO-LLC/ja4) removes GREASE values and produces a readable string where an analyst can infer the client uses TLS 1.3 with 15 cipher suites and 16 extensions over HTTP/2.

## How sites use request headers to block bots

Bots using HTTP libraries send headers in a different order, and Cloudflare uses this signal as part of its [bot score calculation](https://developers.cloudflare.com/bots/additional-configurations/detection-ids/). Each browser sends headers in a fixed, browser-specific order that a Python script does not match by default.

### Detecting invalid browser header patterns

The lack of an `Accept-Language` header is a signal that the client may not be a human-operated browser, though it is not conclusive. Most desktop browsers set this header from the active user interface language, but some browsers and privacy modes omit or limit it. Similar checks apply to `Accept-Encoding`, `Connection`, and `Upgrade-Insecure-Requests`: if a header that Chrome typically sends is missing, or a header it never sends is present, the system scores it.

### Header order and value consistency

Chrome sends the same headers in the same order for the same type of request. If a script sends them in a different order on each request, the system detects the variation. The header values also matter: if `Accept-Language` is `en-US,en;q=0.9` on one request and `fr-FR,fr;q=0.9` on the next, that is a signal, because humans rarely change languages mid-session.

## Analyzing client-side fingerprinting vectors

Cloudflare's bot detection [runs several detection layers](https://developers.cloudflare.com/bots/additional-configurations/) simultaneously: TLS fingerprinting (JA3 and JA4), HTTP/2 fingerprinting, Canvas and WebGL browser fingerprinting, JavaScript and Managed Challenges, behavioral analysis, automation marker detection, and Turnstile.

### Detecting canvas and WebGL fingerprints

Canvas and WebGL fingerprinting creates device-class identifiers that Cloudflare cross-validates against the reported User-Agent and OS. The site renders a hidden canvas or WebGL scene, hashes the pixel output, and checks whether it matches the reported GPU and driver. Combined with a few other signals such as fonts, screen resolution, and timezone, the hash can identify a browser across sessions.

### Identifying bots via display resolution

If the script reports a rare resolution, like 1024x768 on a modern system, the system treats it as a signal. The system also checks `window.outerWidth` and `window.outerHeight` against `window.innerWidth` and `window.innerHeight`. In headless Chrome, these values are often identical, which is unusual for a real browser with scrollbars and toolbars.

### How sites audit installed plugins

Modern browsers expose few plugins, so the check looks at whether the plugin list matches what the reported browser and OS normally show. An empty list where a browser normally reports a built-in PDF viewer is unexpected. Anti-bot detection systems also attempt to identify the implementation of methods specific to headless browsers, or the lack of proper implementation of APIs that regular web browsers provide.

### Fingerprinting through media device APIs

The site also checks for microphones, cameras, and audio devices. A bot might report a microphone when the host system has none, and that mismatch is a signal. Steel picks a [realistic fingerprint](https://steel.dev/docs/stealth/fingerprints) when each session starts, so the values a site reads fit a common desktop browser. To keep the same identity from run to run, start each session from a [profile](https://steel.dev/docs/logins/profiles), which carries the user agent, viewport size, cookies and storage over.

## Identifying bot behavior through user interaction

### Why interaction cadence triggers blocks

Humans move the mouse, pause to read, and misclick sometimes. A script that clicks every link in 50ms is too fast, and one that never moves the mouse is unusual. Mature anti-bot systems score how consistent these signals are, so a mismatch like a headless default adds to the risk score.

### Analyzing session scroll and click data

The site tracks scroll velocity, dwell time, click coordinates, and time between actions. Reading takes real time: Contentsquare's Digital Experience Benchmark puts average time on a page [near 54 seconds](https://betterlinks.io/measure-and-increase-average-time-on-page/), though times vary by industry and page type. [NN/g research](https://www.nngroup.com/articles/how-little-do-users-read/) estimates roughly 25 seconds of fixed cost plus about 4.4 seconds per 100 words, and notes that users often decide within 10 to 20 seconds whether to stay. A script can parse the same content in a fraction of that time. Humans move the mouse in curves with acceleration and deceleration, while many scripts move it in a straight line at constant velocity or not at all.

The site looks at the whole session lifecycle, not just individual requests. As an illustrative example: a script that loads 1,000 pages in 10 seconds (100 pages per second) can trigger velocity-based detection.

## Why legitimate sessions trigger security filters

Legitimate AI agents get flagged for three reasons: inconsistent signals across layers, unstable session state, and infrastructure that does not maintain fingerprint consistency.

### Why local and production fingerprints differ

A local Playwright script and a production server often differ in two places. The server may run a different Chromium version with a different TLS stack, which produces a different JA3 fingerprint, and it runs on a datacenter GPU instead of a local one, which changes the canvas fingerprint. When the same account is used from both, the site can flag the mismatch.

### How automation flags and fingerprint mismatches combine

Detection systems isolate non-human traffic when they observe automation flags alongside fingerprint inconsistencies: the same canvas hash across unrelated sessions, missing WebGL details, or TLS fingerprints inconsistent with the declared User-Agent.

### Why inconsistent requests trigger blocks

Sessions that switch IP addresses mid-stream, send identical HTTP headers for every request type, or keep the same cookie across days while clearing local storage in between create unusual patterns. Consistency is the goal: the score stays high when signals agree and drops when they conflict.

## Strategies for reducing bot detection failures

Automation should run only on sites and accounts the team is authorized to use. Teams should confirm permission, prefer official APIs, respect rate limits and site terms, and contact the site owner when blocked.

### Debugging blocked browser requests

Steel applies [session signals](https://steel.dev/docs/reference/signals) to mark events during a run, such as `captcha_encountered`, `bot_detection_triggered`, or `proxy_connection_failed`. Status codes are clues, not answers: a 403 can come from an ordinary access policy, a 429 means rate limiting, a 5xx can come from the site itself, and a 200 can still contain a challenge page.

Before deciding what caused a failure, check the response body, the session recording, and the signals together. Signals are heuristic, so an empty list doesn't prove nothing happened.

| Failure mode | Possible clues | How to confirm | Next step |
| - | - | - | - |
| **Network failure** | Timeout, proxy connection refused, or a 5xx response | Look for `proxy_connection_failed`, then check the response body and recording, since a 5xx can also come from the site | Verify proxy provider is online, rotate proxy for the next session, use built-in proxies instead of external |
| **Site block** | A challenge or block page, which can arrive with a 403, a 429, or a 200 | Check the response body and recording for a challenge or block page, and look for `bot_detection_triggered`. A 403 with a permission message points to an access policy, and a 429 points to rate limiting | Increase session consistency, add delays between requests, verify IP reputation, check headers. For an access policy or rate limit, confirm the account's access and slow the request rate |
| **Agent logic error** | 200 OK, but wrong content returned | Rule out a challenge page in the response body or recording, then check the DOM against what the agent expected | Typically fix agent code, add error handling, or check for site layout changes |

### Maintaining session state for automation

Reuse session state across requests: log in once, store the session cookies, and use them on the next request instead of logging in again. Each new login adds a fresh TLS handshake and often a new IP context, and that variety is a signal. If the agent needs a persistent profile, the profile should include authentication, cookies, local storage, and browser settings, and it should be used every time for that user identity rather than rotating profiles per request.

### Configuring limits for stable sessions

Set consistent timeouts. If a session times out after the 5-minute default, the next session starts from scratch and its cookies are gone. Set the `timeout` option above the default when a task needs it, up to the plan maximum, and keep the session alive between tasks. Use the same proxy and the same browser fingerprint for a session's lifetime rather than rotating mid-session, because each change is a new risk signal. Do not change the User-Agent, screen resolution, or timezone mid-session.

### Using session signals to diagnose failures

Retrieve the session and check the signals. If `bot_detection_triggered` is present, read the session's recording and logs to see what the page showed. If it was a challenge page, the agent needs to pass the challenge. If it was a block page, the agent's signals were likely too inconsistent. Steel's [Agent traces](https://steel.dev/docs/observability/agent-traces) show how to inspect a timeline of actions for diagnosis.

## What TLS reveals about Selenium and Playwright

TLS is one of the signals that survives a change of IP address. Selenium drives the browser version installed on the machine, while Playwright drives its own bundled Chromium, Firefox, and WebKit builds rather than a standard installed browser. In both cases the TLS layer is genuine browser TLS, and the TLS fingerprint matches the browser actually running.

### How Steel applies fingerprints to sessions

Steel assigns each session a [fingerprint](https://steel.dev/docs/stealth/fingerprints) that matches a real desktop browser, unless the script sets `userAgent` or starts from a profile. On Enterprise, the custom Chromium fork applies the fingerprint inside the browser process, before any page script can read it. That approach targets browser-level signals such as GPU and WebGL fingerprints, media devices, and OS-level details, which injected scripts cannot reach.

Stealth reduces blocks but does not remove them, and results on specific sites are never guaranteed. For the trade-offs in detail, read the [anti-bot defense explainer](https://steel.dev/blog/anti-bot-defense).

### Why fingerprint consistency reduces detection

Reducing browser fingerprint detection comes down to consistency. A session that keeps the same canvas hash, WebGL renderer, screen resolution, and timezone across requests scores higher than a session that varies these signals. The trade-off is that the same hash appearing across many unrelated sessions and IPs looks machine-like, because real users each have their own device. Keep each session's fingerprint stable, and vary fingerprints between separate identities.

Start with the Launch plan at [steel.dev](https://steel.dev/). No credit card needed to start.

## Frequently asked questions

### How do websites detect automated browsers?

Websites evaluate signals such as TLS fingerprints, HTTP header order, known automation libraries, request behavior, and browser JavaScript detections. Each layer is a consistency check. If signals are inconsistent with each other or with real browser behavior, the site flags the request as likely automated.

### Can bot detection tell Playwright from a real browser?

Bot detection cannot reliably tell Playwright from a real browser based on TLS alone, because Playwright and Selenium drive real browser builds and the JA3 matches the browser actually running. Detection systems flag inconsistent usage instead: fingerprints that change between requests, session state that is not preserved, or a varying network context.

### Why does a script work locally but fail in production?

Local and production environments differ across several signal layers: TLS library version, IP address, browser version, GPU, installed fonts, system timezone, and session state. When these signals are inconsistent between environments, the detection system can flag the mismatch.

### What is a browser fingerprint?

A browser fingerprint is created using a combination of User-Agent strings, plugins, fonts, and screen resolution, with \[83.6% of browsers being unique]\(https\://coveryourtracks.eff.org/static/browser-uniqueness.pdf) across a large dataset in Eckersley's 2010 study. The fingerprint identifies the browser across sessions and verifies that the browser's reported configuration matches its actual behavior.

### How can teams tell a network problem from a site block?

Check the response body, the session recording, and the Steel session signals together. A \`proxy_connection_failed\` signal points to a network problem, \`bot_detection_triggered\` means a page ended on an anti-bot block or challenge the browser didn't get past, and \`captcha_encountered\` means Steel detected a CAPTCHA. Treat status codes as clues rather than proof: a 5xx or timeout often points to the network but can also come from the site, a 403 can come from an ordinary access policy, a 429 means rate limiting, and a 200 can still contain a challenge page. Signals are heuristic, so an empty signal list doesn't prove nothing happened.

## Key terms glossary

**Bot detection:** A layered risk-scoring system that measures network, TLS, HTTP, browser fingerprint, and behavioral signals to decide whether a request comes from a human-operated browser.

**JA3/JA4 fingerprint:** A hash of the TLS ClientHello handshake parameters, used to identify which TLS library a client uses. JA3 produces an MD5 hash. JA4 produces a readable string that is resilient to parameter shuffling.

**Risk score:** A numerical value assigned to a request by an anti-bot system, combining signals from multiple layers.

**Browser fingerprint:** A set of characteristics, such as canvas rendering output, WebGL renderer, screen resolution, fonts, timezone, and plugins, that can identify a browser instance across sessions.

**Signal:** A label Steel applies to a session or request, indicating that a specific event occurred, such as a CAPTCHA challenge, a bot block, or a proxy failure. See [session signals documentation](https://steel.dev/docs/reference/signals).

**TLS handshake:** The encrypted negotiation between a client and server at the start of an HTTPS connection. The handshake includes exchanges of cipher suites, extensions, and elliptic curve preferences, all of which are captured by TLS fingerprinting.

**Headless browser:** A browser that runs without a GUI, with no window, no display server, and no visual rendering. Headless browsers are cheaper and faster but can be easier to detect because they lack GUI-layer behaviors that graphical browsers have.

**Session state:** The accumulated data a browser holds during a session, including cookies, local storage, session storage, IndexedDB, cached credentials, and authentication tokens. Session state persistence is key to avoiding re-authentication and fingerprint inconsistency.
