Skip to content
AnswerWell geo Documentation

Research · 7 min read · Answerwell

Web Bot Auth HTTP Message Signatures and Bot Verification

How Web Bot Auth verifies automated HTTP traffic with cryptographic signatures, key directories, and when to fall back to IP and user-agent checks.

This page summarizes how Web Bot Auth is described in Google’s crawling documentation (experimental rollout for some AI agents) and in Cloudflare’s bot verification documentation (production use for verified bots, Browser Run, and AI Crawl Control). Both rely on HTTP Message Signatures (RFC 9421) instead of trusting self-reported headers and IP addresses alone.

Web Bot Auth: what cryptographic bot verification is

Section titled “Web Bot Auth: what cryptographic bot verification is”

Web Bot Auth is an experimental cryptographic protocol used to authenticate requests sent by bots. Instead of relying solely on self-reported headers and IP addresses, Web Bot Auth allows agents to cryptographically sign their requests.

Web Bot Auth is an authentication method that leverages cryptographic signatures in HTTP messages to verify that a request comes from an automated bot.

— Google, Authenticate requests with Web Bot Auth (experimental)

The same idea appears in Cloudflare’s model for verified bots and signed agents: honest self-identification can include a cryptographic Web Bot Auth signature, alongside published IP lists with a stable user-agent or reverse DNS (Verified bots).

Benefit (Google’s framing) What it changes in practice
Cryptographic certainty Verified identity; agent identity is not tied only to IP
Better observability Clearer view of how agents interact with your content
Future-proofing Shared trust between agent providers and site owners

Experimental status: not every bot request is signed yet

Section titled “Experimental status: not every bot request is signed yet”

Google’s implementation of Web Bot Auth is currently experimental. Web Bot Auth is currently a draft specification developed by the IETF WBA Working Group, and it may change over time.

We don’t sign every request of a particular agent. Be sure that you fall back to the established methods of bot verification.

— Google, Authenticate requests with Web Bot Auth (experimental)

In practice that means:

  • Not all Google user agents are using Web Bot Auth.
  • Google is not yet signing every request of agents using the protocol.
  • You should continue using IP addresses, reverse DNS, and user-agent strings while signed traffic rolls out gradually.

Cloudflare treats Web Bot Auth as an available bot verification method (bot verification changelog); Browser Rendering attaches Signature-agent, Signature, and Signature-input automatically (Browser Run changelog). Those are separate products, but the same header family.

HTTP headers: how to recognize Web Bot Auth on incoming requests

Section titled “HTTP headers: how to recognize Web Bot Auth on incoming requests”

Participating requests carry three headers built from the HTTP Message Signatures standard:

Header Role
Signature-Agent Points to the bot’s public key directory (who signed the request)
Signature-Input Metadata: which components were signed, algorithm, keyid, created, expires, tag, etc.
Signature The cryptographic signature over those components

For Google’s experimental AI agents, participating requests set Signature-Agent to g="https://agent.bot.goog" (note the g= label). Signed traffic is authenticated as https://agent.bot.goog (Authenticate requests with Web Bot Auth).

Cloudflare Browser Run adds non-overridable headers including Signature-agent (location of bot public keys), Signature, and Signature-input (Automatic request headers). A successful verification against Cloudflare’s key directory proves the request came from Browser Run and was not tampered with in transit.

Cloudflare’s bot operators must format Signature-Agent as an https:// URI in double quotes (structured string, not a dictionary form), and include signature-agent in the Signature-Input component list (Construct the required headers).

Verify Web Bot Auth yourself: key directory and RFC 9421

Section titled “Verify Web Bot Auth yourself: key directory and RFC 9421”

Whether you verify on your origin or rely on a CDN/WAF, the receiver’s logic follows the same pattern Google documents for site owners:

  1. Fetch the public key set from the agent’s directory (for Google: https://agent.bot.goog/.well-known/http-message-signatures-directory) and cache keys per the response Cache-Control. Remove cached keys that disappear from the directory—they may be expired or revoked.
  2. Read Signature-Agent and match the signing agent URI.
  3. Verify the Signature using Signature-Input, following RFC 9421, using the signature label your agent uses (Google documents label g).

Don’t forget to fall back to IP-based verification, as not all requests are signed.

— Google, Authenticate requests with Web Bot Auth (experimental)

For latency-sensitive paths, Google notes you may respond first and validate within the signature’s expiry window; enforcement can apply on later requests. A signature’s expiry window is not the same as the key directory’s Cache-Control—validate both separately (Authenticate requests with Web Bot Auth).

Major bot-detection services, CDNs, and WAFs may verify Web Bot Auth for you; if your provider supports the protocol, Google expects automatic verification for signed Google-Agent traffic (Authenticate requests with Web Bot Auth).

If you verify on Cloudflare’s edge, some RFC 9421 components and parameters fail validation—for example @query-params, @status, and parameters sf, bs, key, req, and name (Limitations). Prefer signing @authority and ASCII-only components; Cloudflare recommends short expires (often about a minute) for replay resistance because nonce validation is not fully enforced (Signature-Input header).

Bots can test formatting against Cloudflare’s Web Bot Auth test endpoint (401 if format is correct but the key is unknown, 200 if verified, 400 otherwise).

Allowlist Google AI agents: Web Bot Auth plus legacy bot checks

Section titled “Allowlist Google AI agents: Web Bot Auth plus legacy bot checks”

If you want to allowlist Google’s experimental AI agents during the trial, use Web Bot Auth and keep IP, reverse DNS, and user-agent checks (Authenticate requests with Web Bot Auth). Industry commentary ties the https://agent.bot.goog identity to reducing reliance on spoofable user-agent and IP checks for browser-navigating AI agents (Google-Agent joins the crawler list).

That differs from classic allowlisting such as Perplexity’s documented AWS WAF pattern (IP set and user-agent match), which is not Web Bot Auth (Perplexity Crawlers).

Run a verified bot: keys, directory, and signed requests (Cloudflare)

Section titled “Run a verified bot: keys, directory, and signed requests (Cloudflare)”

For crawlers registering with Cloudflare, Web Bot Auth is the integration path:

  • Generate an Ed25519 key pair; publish the public key as JWK in /.well-known/http-message-signatures-directory over HTTPS, with Content-Type: application/http-message-signatures-directory+json and signed directory response headers.
  • Submit the directory URL via the Bot Submission Form with verification method Request Signature (Register your bot and key directory).
  • After approval, sign each request with tag=web-bot-auth in Signature-Input, include @authority and signature-agent in the component list, and attach all three signature headers (Sign your requests).

AI crawler operators using Pay Per Crawl must authenticate Discovery API and crawl requests with the same header family (Discover payable content, Crawl pages).

Pay Per Crawl: payment headers inside Signature-Input

Section titled “Pay Per Crawl: payment headers inside Signature-Input”

Payment headers must be part of the signed components or pricing can be tampered with:

Payment headers (crawler-exact-price or crawler-max-price) must now be included in the Web Bot Auth signature-input header components.

— Cloudflare, AI Crawl Control changelog

When choosing components to sign, add your payment header to the list of signed components for successful payment processing (Crawl pages). The same requirement is recorded across Cloudflare’s product changelog entries and Pay Per Crawl enhancements.

Submission for Cloudflare’s verified bot list with Request Signature is described in Verify your AI crawler.

Common mistakes when validating Web Bot Auth

Section titled “Common mistakes when validating Web Bot Auth”
  • Signature only: Dropping IP, reverse DNS, or user-agent checks while Google still signs only a subset of requests.
  • Signature-Agent formatting: Missing double quotes, non-HTTPS URI, dictionary form, or omitting signature-agent from Signature-Input (Cloudflare verification fails).
  • Expired before arrival: expires too tight for network latency; Google and Cloudflare both caution about clock and transit time.
  • Key cache hygiene: Keeping revoked keys after directory updates; ignoring separate expiry for signatures vs directory Cache-Control.
  • Pay Per Crawl: Omitting crawler-exact-price or crawler-max-price from signed components.
  • Wrong signature family: Confusing Web Bot Auth with unrelated HMAC webhook headers (e.g. Stream Webhook-Signature or RealtimeKit rtk-signature)—those prove webhook origin, not crawler Web Bot Auth (Using webhooks, RealtimeKit webhooks).
  1. Capture a live request from the bot you care about (e.g. Google-Agent or your own crawler) and confirm whether Signature, Signature-Input, and Signature-Agent are present, using your CDN logs or origin access logs. Compare with Google’s Web Bot Auth guide and Cloudflare automatic request headers for expected shapes.

  2. Fetch the agent’s key directory (https://agent.bot.goog/.well-known/http-message-signatures-directory for Google-signed agents, or your bot’s registered URL) and confirm keys refresh per Cache-Control and that removed keys are purged from your cache.

  3. Verify signatures with your WAF/CDN if supported (Bot verification methods); otherwise validate manually per RFC 9421 as in Authenticate requests with Web Bot Auth. Bot operators can probe Cloudflare’s Web Bot Auth test endpoint.

  4. In parallel, run IP, reverse DNS, and user-agent checks on the same traffic until signing is universal, as Google recommends in Authenticate requests with Web Bot Auth (experimental).

  5. You can check automatically in Answerwell (our tool): https://answerwell.org/workspace

If something on this page is wrong or unclear, email yimasynthetic@gmail.com with the page URL and the exact statement you are asking about.