A growing share of “bot” traffic isn’t a scraper or a credential-stuffing script. It’s an AI agent doing something a person asked for: comparing prices, booking a table, filling in a form. These agents usually drive a real browser in the cloud, so they run your JavaScript, render your pages and pass many classic bot checks.
That raises a question bot detection was never built for: not is this automated?, but who is this automation, and should it be doing this? Web Bot Auth is the most promising answer so far.
Three kinds of automation, three policies
It helps to separate what used to be lumped together as “bots”:
- Crawlers collect pages in bulk, for search indexes or AI training. A publisher might want search crawlers and not training crawlers.
- Assistants fetch a page because a person asked about it. They behave like a single visit.
- Agents take actions for a person: they log in, add to cart, submit forms, pay.
A retailer probably wants assistants to read product pages, may accept a verified agent checking out on a customer’s behalf, and certainly doesn’t want anonymous automation creating accounts. To write that policy, you have to know which is which.
Why the old ways of identifying bots don’t work for agents
User agent strings are claims. Anyone can send ChatGPT-User or any other agent’s user agent. Spoofing a well-known agent is attractive precisely because sites tend to let it through.
IP allowlists are brittle. Agents run on cloud browser infrastructure that changes, shares address space, and isn’t always published in a stable list.
Reverse DNS checks work for some search crawlers, but don’t generalize to agents running on third-party browser platforms.
What’s needed is the same thing the web uses for servers: cryptographic identity.
How Web Bot Auth works
Web Bot Auth builds on HTTP Message Signatures (RFC 9421). The agent’s operator holds an Ed25519 private key and signs parts of every request. The matching public keys are published at a well-known URL, so any website can check the signature.
-
Agent operator
Publishes Ed25519 public keys
GET /.well-known/ http-message-signatures-directory
-
Agent
Signs each request it sends you
Signature-Agent Signature-Input Signature
-
Your edge or server
Fetches the operator’s keys (cached) and verifies the signature
tag = web-bot-auth keyid = JWK thumbprint created ≤ now < expires
-
Your policy
Decides per action, not per request type
verified → agent rules claimed, unsigned → suspicious
A signed request carries three headers. Here is an illustrative example in the style OpenAI documents for ChatGPT agent:
GET /products/123 HTTP/1.1
Host: shop.example
Signature-Agent: "https://chatgpt.com"
Signature-Input: sig1=("@authority" "signature-agent");created=1794528000;expires=1794531600;keyid="<JWK thumbprint>";alg="ed25519";tag="web-bot-auth"
Signature: sig1=:<base64 signature>:
Signature-Agentsays where the operator’s keys live. The quotes are part of the value.Signature-Inputlists the signed components (here the@authority, your host, and thesignature-agentheader) and the parameters: creation and expiry times, thekeyid(a JWK thumbprint of the public key), andtag="web-bot-auth".Signatureis the signature itself.
The operator publishes its keys as a JSON Web Key Set at /.well-known/http-message-signatures-directory, served over HTTPS. OpenAI’s, for example, is at https://chatgpt.com/.well-known/http-message-signatures-directory.
Because the signature covers @authority, a signature captured on one site doesn’t verify on another. Short expiry windows (the drafts recommend under 24 hours) limit replay.
Verifying a request, step by step
On your edge or server:
- Parse
Signature-Input. Find the signature labelledtag="web-bot-auth", and confirm it covers@authorityand, if present,signature-agent. - Check the clock. Reject it if
createdis in the future (allow a little skew) orexpireshas passed. - Find the key directory. Take the origin from
Signature-Agentand fetch/.well-known/http-message-signatures-directory. Only fetch from operators you’ve chosen to recognize, and cache the result. Fetching any URL a request names is a server-side request forgery risk and a denial-of-service lever. - Find the key. Match the
keyidagainst the JWK thumbprints in the directory. - Rebuild the signature base exactly as RFC 9421 describes, from the covered components and the
Signature-Inputparameters. - Verify the Ed25519 signature. Only now do you know who sent the request.
In code, the shape is roughly:
// Sketch only: use a maintained RFC 9421 library for parsing and the signature base.
const sig = parseSignatureInput(req.headers['signature-input']).find((s) => s.params.tag === 'web-bot-auth');
if (!sig) return { verified: false };
const now = Math.floor(Date.now() / 1000);
if (sig.params.created > now + 60 || sig.params.expires <= now) return { verified: false, reason: 'expired' };
const operator = new URL(JSON.parse(req.headers['signature-agent'])).origin;
if (!TRUSTED_OPERATORS.has(operator)) return { verified: false, reason: 'unknown operator' };
const jwks = await cachedDirectory(operator); // GET {operator}/.well-known/http-message-signatures-directory
const key = jwks.keys.find((k) => jwkThumbprint(k) === sig.params.keyid);
if (!key) return { verified: false, reason: 'unknown key' };
const base = signatureBase(req, sig); // RFC 9421 section 2.5
return { verified: ed25519Verify(key, base, sig.value), operator };
Writing the policy
Verification tells you who. The policy decides what they may do. A starting point:
| Action | Verified agent | Claims to be an agent, unverified | Anonymous automation |
|---|---|---|---|
| Read public pages | Allow | Rate-limit | Rate-limit or challenge |
| Search and browse | Allow | Challenge | Challenge |
| Create an account | Your call, often require a human | Block | Block |
| Log in for a user | Allow, then watch for takeover signs | Block | Block |
| Pay or change account details | Allow only with user-bound confirmation | Block | Block |
The key principle: a verified agent should make you more comfortable, and an unverified claim to be one should make you less. The only automation that identifies itself honestly is the automation that can prove it.
Who supports it today
- OpenAI signs ChatGPT agent requests, and documents its
Signature-Agentvalue and key directory. - Cloudflare lists ChatGPT agent as a verified bot in its bot directory, and Vercel verifies ChatGPT agent requests automatically.
- On the verification side, Google Cloud Fraud Defense (formerly reCAPTCHA), hCaptcha and Fingerprint document Web Bot Auth support.
- Most bot management vendors now sell some form of “agent trust”: DataDome, Kasada, HUMAN and Arkose Labs all have agent products. Forrester even renamed its evaluation of the category “Bot and Agent Trust Management”.
What to do now
- Measure. Log
Signature-Agentheaders and agent user agents, and see how much agent traffic you already get, and on which pages. - Verify before you trust. Turn on verification in your bot product, or add it at your edge using a maintained RFC 9421 library.
- Write the per-action policy before agents start buying things on your site, not after.
The market map shows which vendors cover which layers, and headless browser detection covers the automation that doesn’t sign its requests.