AI Agent Traffic: Telling Assistants From Attackers

Verify AI agent traffic with Web Bot Auth, crawler IP ranges and DNS. Decide when a customer must authorize checkout or account changes.

A table from this post: Request, Verified declared agent, Unverified automation.
From this post: the table of AI agent requests and how to treat them.
On this page
  1. Three populations, not two
  2. Why the user agent is the weakest possible signal
  3. What actually verifies a declared agent
  4. The datacenter trap
  5. Where agent runtimes genuinely leak
  6. Enforce on action risk, not page views
  7. Log the reason, not just the outcome
  8. The short version

A shopping assistant reading a product page and a script submitting stolen passwords can both look like automated browsers. For AI agent traffic detection, first check whether the operator can prove which service sent the request. Then decide what that service can do on the customer’s behalf.

The question worth asking in 2026 is not whether traffic is automated. It is whose intent the automation carries, and what the request is trying to do. Those are different questions, and only the second one maps cleanly onto enforcement.

This piece lays out the three populations you are actually sorting, what each one genuinely leaks, and a policy shape that does not break either your fraud numbers or your traffic from legitimate assistants.

Three populations, not two

Lumping all non-human traffic together is what makes AI agents feel unsolvable. Split it and the problem becomes tractable, because each group leaves a different kind of evidence.

  1. Declared crawlers and fetchers. Operated by a vendor, identified by a stable user agent, and — for the serious ones — backed by published IP ranges. They want to be identified, because being blocked is bad for them.
  2. User-driven agents. A human asked for something and an agent runtime is carrying it out: browsing, comparing, filling a form, completing a purchase. Intent is human, execution is automated, and the traffic often egresses from cloud infrastructure rather than the user's home connection.
  3. Adversarial automation wearing agent clothing. Scrapers, stuffers, and inventory bots that noticed "agent" user agents get allowlisted and started sending them. This population grows in exact proportion to how generously the first two are treated.

Does your visit look automated?

The live check on our homepage runs on your own visit and shows whether it reads as a bot, a VPN or a proxy, and what a website would decide, with no sign-up.

Why the user agent is the weakest possible signal

A user agent is a request header. Anyone can send any string. The moment a meaningful number of sites started allowlisting assistant traffic by name, copying that string became the cheapest bypass available — no infrastructure, no tooling, one line of configuration.

This is the same arc that played out with Googlebot fifteen years ago, and the answer is the same one search engines settled on: never trust the claim, verify the origin.

What actually verifies a declared agent

Signed agent requests. Cloudflare already verifies registered bots and agents using Web Bot Auth. The HTTP message signature format is a published standard, RFC 9421. The Web Bot Auth directory and protocol profiles used by Cloudflare are based on IETF drafts. One deployed example is OpenAI’s cloud browser, which signs its requests and publishes verification keys. At the edge, use the identity your CDN has verified. If the origin needs that identity, accept it only over your trusted CDN-to-origin path. A visitor can send a header with any name.

Crawlers with a published network identity. Follow the operator’s instructions for the particular crawler. For example, Google documents the ranges and DNS names for each crawler class. Match the actual connecting address against the current range for that class. For the DNS method, check that reverse DNS produces an approved hostname under the documented domain, then resolve the hostname forward and confirm the original IP. A match identifies the operator’s network for that class.

Unverified traffic. Record an unknown identity when neither method succeeds. Missing signatures are expected for some crawlers. Keep your normal public-page rate limits and require the account’s own authentication and consent before a purchase, redemption or change of email. A valid vendor signature proves who sent the signed request. It does not establish which customer approved the transaction.

The datacenter trap

Here is where most teams break their own traffic. Legitimate agent runtimes execute in the cloud. So the dch signal — the one that says this address belongs to a hosting provider — fires on the good population and the bad population alike.

If your rule is "datacenter means block," you have just blocked every assistant that might have sent you a customer, while catching only the least sophisticated attackers, because the serious ones moved to residential egress years ago. That is the worst of both trades.

This is why range hits have to add context rather than decide outcomes, and in our own pipeline they do. On a live visit (/v1/evaluate), a cloud-server address with nothing else against it is allowed: the answer carries network.datacenter: true and the datacenter_asn reason for your own rules, and the default risk score is 15. The decision comes from what the visit is doing: a proxy, a Tor exit, automation or a tampered browser blocks, and a VPN on its own asks for review. Only a bare address lookup (/v1/lookup), which has no visit to go on, scores the range itself: 40 out of 100, which is review, while a Tor exit there scores 90, a block. Either way the range match only adds a signal and never skips tunnel detection. That ordering is deliberate: VPN exit nodes live in datacenters, so a range match must never short-circuit the checks that would have caught the tunnel.

Where agent runtimes genuinely leak

Once you stop asking the user agent, the honest signals are the same ones that catch any automation — plus a few specific to how agents are built.

  • Automation surfaces. Agent frameworks overwhelmingly drive a real browser through the DevTools protocol. That leaves detectable traces in the execution environment regardless of what the user agent claims. The same techniques that surface Puppeteer and Playwright apply directly.
  • Interaction entropy. Human input carries messy timing: variable dwell, corrected typing, non-linear pointer paths. Agent-driven input is generated. It is not that agents are too fast — many deliberately throttle — it is that the *distribution* is wrong.
  • Protocol-layer contradictions. A request claiming a specific browser version should present the TLS and HTTP/2 fingerprint that build actually produces. Agent stacks and HTTP libraries frequently do not match their own claims. See JA3, JA4, and TLS fingerprinting for how to read that mismatch.
  • Session shape. Assistants tend to arrive, fetch a small number of specific things, and leave. They rarely browse the way a person shopping does. That is not incriminating by itself — it is a useful prior.

Enforce on action risk, not page views

The single most useful reframing: stop deciding at the edge of the site and start deciding at the edge of the *action*.

Reading a product page is cheap. Nobody is harmed if an unverified agent reads it, and blocking that read costs you a referral. Creating an account, redeeming a promotion, changing an email address, or completing a checkout are expensive and irreversible. Those deserve scrutiny in proportion to what they cost when wrong.

A policy built that way degrades gracefully. A verified assistant reading content is served. The same runtime attempting a bonus redemption gets challenged, because the risk of that specific action justifies it — and no allowlist entry should be able to skip that check.

Request Verified declared agent Unverified automation Automation + tunnel or tamper
Read a public page Serve Serve, rate-limited Serve, rate-limited
Search or query an API Serve, rate-limited Rate-limit, log Challenge
Create an account Challenge Challenge Block
Redeem promo / bonus Challenge Block Block
Checkout / payment Challenge Challenge Block

Log the reason, not just the outcome

Agent behaviour, vendor infrastructure, and identity standards are all moving faster than your rules will. Whatever you decide this quarter will be wrong by the next one.

The teams that stay ahead record why each decision was made — which signals fired, which verification passed or failed, what the risk score was — not just allow or block. When a vendor rotates ranges or a new runtime appears, that log is the difference between a twenty-minute rule change and a week of guessing which population you broke.

It also protects you in the other direction. When someone reports that an assistant could not complete a purchase, you want to answer from evidence.

The short version

Record how you verified the operator: a signed request from a known agent, or the documented address or DNS check for a particular crawler. Use the requested action to decide what customer authorization is required. Keeping the verification method alongside that decision lets support explain why, for example, an assistant could read a price but needed the customer to confirm the purchase.

Blanket-blocking automation was never a strategy. In 2026 it is an active revenue decision, and usually the wrong one.

Questions people ask

How do I verify an AI agent is really from the vendor it claims?
For a participating agent, use a trusted edge verification result for a signed Web Bot Auth request. For other operators, use their documented address ranges or forward-confirmed reverse DNS where supported. An unverified request keeps ordinary access limits. Sensitive actions still require application authorization.
Should I block AI agents from my site?
Rarely as a blanket rule, because agent traffic increasingly carries real customer intent and blocking it forfeits those conversions. The better model is to enforce by action risk: serve public content freely, rate-limit queries, and challenge or block expensive irreversible actions such as account creation, promotion redemption, and checkout. Blanket blocks also fail on their own terms, since the adversarial population simply moves to residential egress and copies whatever user agent you allowlisted.
Why does datacenter IP detection flag legitimate AI agents?
Because legitimate agent runtimes genuinely execute in cloud infrastructure, so they share network origin with scrapers and attack tooling. That is why a datacenter match should add context rather than decide the outcome. In Maskbreak's pipeline a live visit from a cloud-server address with nothing else against it is allowed, with the datacenter flag and reason on the answer for your own rules; only a bare IP lookup, which has no visit to go on, scores the range itself, at 40 out of 100, which is review rather than block. Either way the range match never short-circuits tunnel detection — VPN and proxy exits are themselves hosted in datacenters, so skipping those checks on a range hit would miss the harder cases.
Can attackers just copy an AI agent user agent to get allowlisted?
Anyone can send the name in a user-agent header. Base an identity decision on a trusted signature-verification result or the operator’s documented network verification method. Require the usual account permissions for private data or writes.
What signals distinguish an AI agent from a human user?
Automation surfaces are the most reliable, since agent frameworks generally drive a real browser through the DevTools protocol and leave traces in the execution environment no matter what the user agent says. Interaction entropy is the next strongest: human input has messy, variable timing and corrected typing, while generated input has a different distribution even when it is deliberately slowed. Protocol-layer contradictions also help, such as a request claiming one browser version while presenting a TLS or HTTP/2 fingerprint that build does not produce.

Check your visitors for bots

One call from your server before signup, login or checkout returns allow, review or block, with every reason listed: automation, a fake browser, a VPN, a proxy or Tor. The Free plan includes 10,000 visitor checks a month with no card, and setup starts in watch mode, so nothing is blocked until you turn blocking on.

Get started freeCheck my visit