antibot.dev
Sponsored Try LayerSift
  • AI agents
  • Engineering

Verifying AI agents with Web Bot Auth

AI agents browse with real browsers, and user agent strings are easy to fake. How Web Bot Auth uses HTTP message signatures to prove who sent a request.

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.

How Web Bot Auth verification works
  1. Agent operator

    Publishes Ed25519 public keys

    GET /.well-known/
    http-message-signatures-directory
  2. Agent

    Signs each request it sends you

    Signature-Agent
    Signature-Input
    Signature
  3. Your edge or server

    Fetches the operator’s keys (cached) and verifies the signature

    tag = web-bot-auth
    keyid = JWK thumbprint
    created ≤ now < expires
  4. 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-Agent says where the operator’s keys live. The quotes are part of the value.
  • Signature-Input lists the signed components (here the @authority, your host, and the signature-agent header) and the parameters: creation and expiry times, the keyid (a JWK thumbprint of the public key), and tag="web-bot-auth".
  • Signature is 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:

  1. Parse Signature-Input. Find the signature labelled tag="web-bot-auth", and confirm it covers @authority and, if present, signature-agent.
  2. Check the clock. Reject it if created is in the future (allow a little skew) or expires has passed.
  3. Find the key directory. Take the origin from Signature-Agent and 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.
  4. Find the key. Match the keyid against the JWK thumbprints in the directory.
  5. Rebuild the signature base exactly as RFC 9421 describes, from the covered components and the Signature-Input parameters.
  6. 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:

ActionVerified agentClaims to be an agent, unverifiedAnonymous automation
Read public pagesAllowRate-limitRate-limit or challenge
Search and browseAllowChallengeChallenge
Create an accountYour call, often require a humanBlockBlock
Log in for a userAllow, then watch for takeover signsBlockBlock
Pay or change account detailsAllow only with user-bound confirmationBlockBlock

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-Agent value 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

  1. Measure. Log Signature-Agent headers and agent user agents, and see how much agent traffic you already get, and on which pages.
  2. Verify before you trust. Turn on verification in your bot product, or add it at your edge using a maintained RFC 9421 library.
  3. 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.

Questions

What is Web Bot Auth?

A way for bots and AI agents to sign their HTTP requests with a private key, using HTTP Message Signatures (RFC 9421). The operator publishes the matching public keys in a directory, so a website can verify cryptographically who sent the request. It is being standardized in the IETF.

Does ChatGPT agent use Web Bot Auth?

Yes. OpenAI says ChatGPT agent signs its requests using HTTP Message Signatures, with a Signature-Agent value of "https://chatgpt.com", and publishes its keys at https://chatgpt.com/.well-known/http-message-signatures-directory.

Should I block AI agents?

Decide per action rather than per visitor type. Many sites welcome verified agents reading product pages on a user’s behalf, but want a human, or a stronger check, before account creation, posting or payment.

Keep reading

AI agents

Charging AI crawlers: the new toll booths

How sites can block, allow or charge AI crawlers: training vs search vs agent traffic, vendor controls, pay per crawl, HTTP 402 and the open questions.

· 7 min read

Engineering

Proof of work is back in bot defense

Proof-of-work challenges are returning against bots and AI scrapers. How they work, how eleven vendors document them, and where the cost asymmetry breaks.

· 7 min read