Web Bot Auth: Sign Your Agent's HTTP Requests
Web Bot Auth explained and implemented: Ed25519 keys, the key directory, RFC 9421 signatures in Python and Node, who verifies them, and the header format trap.

Web Bot Auth is the emerging standard for an automated client to prove who it is with a cryptographic signature on each HTTP request, instead of a User-Agent string anyone can copy or an IP list that breaks when you change hosting. You publish an Ed25519 public key at a well-known URL, sign every request with RFC 9421 HTTP Message Signatures, and verifiers such as Cloudflare, AWS WAF, Akamai and Vercel check the signature against your key.
This guide implements it end to end. The Python and Node signers below reproduce the RFC 9421 Ed25519 test vector exactly, and we tested the output against Cloudflare's public verification endpoint on 23 November 2026. That test exposed the one thing most write-ups miss: the header format Cloudflare accepts is not the one the latest IETF draft requires.
What Web Bot Auth does, in one paragraph
Your agent attaches three headers to each request. Signature-Agent names an HTTPS origin where your public keys live. Signature-Input lists what was signed (at minimum the target host and the Signature-Agent header) plus a key ID, timestamps and the tag web-bot-auth. Signature carries the Ed25519 signature. A verifier fetches your key directory once, caches it, and checks each request. If the signature is valid and your operator identity is registered with that verifier, your traffic is labelled as a known bot rather than guessed at from behaviour.
Where the standard stands in November 2026
- RFC 9421 (HTTP Message Signatures) has been a published standard since February 2024. Web Bot Auth is a profile of it, not a new signature scheme.
- The IETF chartered a
webbotauthworking group on 23 October 2025 (charter). - One working-group draft carries the protocol now:
draft-ietf-webbotauth-httpsig-protocol-01, "HTTP Message Signatures for automated traffic", dated 29 October 2026, authored by engineers from Cloudflare and Google. It replaced the two earlier individual drafts (the architecture and directory drafts). It is not yet an RFC.
Verifiers shipped before the standard settled, which is why implementations differ in the details below.
Scraping at scale? Skip the blocks.
Fast, unblockable datacentre proxies with unlimited bandwidth.
The Signature-Agent format trap
The Signature-Agent header started life as a plain structured string: Signature-Agent: "https://bots.example". Later drafts changed it to a dictionary keyed by the signature label, and the current working-group draft says signers must send that form: Signature-Agent: sig1="https://bots.example".
Cloudflare's documentation (last modified 8 October 2026) still implements the older form and states that a message fails verification if it "uses the dictionary form from later drafts". Google's agent, meanwhile, sends the dictionary form. We sent three requests to Cloudflare's documented test endpoint, https://crawltest.com/cdn-cgi/web-bot-auth, with a freshly generated, unregistered key:
| Request | Cloudflare response |
|---|---|
| Signed, string-form `Signature-Agent` | `401` "unknown public key or unknown verified bot ID for keyid" (well-formed, key not registered) |
| Same signature, dictionary-form `Signature-Agent` | `400` "signature, signature-input, or signature-agent is malformed" |
| No signature headers | `400` "missing signature / signature-input / signature-agent headers" |
Per Cloudflare's docs, a 401 here means the message is correctly formatted but the key is unknown, and a registered key returns 200. So if you target Cloudflare today, send the quoted-string form, and keep the format switchable, because the draft is moving the other way.
Step 1: generate a key and its thumbprint
Web Bot Auth uses Ed25519. The key ID is the base64url JWK thumbprint (RFC 7638, as applied to Ed25519 keys in RFC 8037): SHA-256 over the canonical JSON {"crv":"Ed25519","kty":"OKP","x":"..."} with members in that order and no whitespace.
# pip install cryptography
import base64, hashlib, json
from cryptography.hazmat.primitives.asymmetric.ed25519 import Ed25519PrivateKey
from cryptography.hazmat.primitives import serialization
b64url = lambda b: base64.urlsafe_b64encode(b).rstrip(b"=").decode()
def jwk_thumbprint(x: str) -> str:
canon = json.dumps({"crv": "Ed25519", "kty": "OKP", "x": x}, separators=(",", ":"))
return b64url(hashlib.sha256(canon.encode()).digest())
key = Ed25519PrivateKey.generate()
x = b64url(key.public_key().public_bytes(serialization.Encoding.Raw, serialization.PublicFormat.Raw))
print("x:", x, "keyid:", jwk_thumbprint(x))
with open("wba-private.pem", "wb") as f: # keep this out of git and out of the directory
f.write(key.private_bytes(serialization.Encoding.PEM, serialization.PrivateFormat.PKCS8,
serialization.NoEncryption()))
Sanity check: for the RFC 9421 test key (x = JrQLj5P_89iXES9-vFgrIy29clF9CC_oPPsw3c5D0bs) this function returns poqkLGiymh_W0uP6PZFw-dvez3QJT5SolqXBCW38r0U, the key ID used in Cloudflare's examples. On OpenAI's live directory it returns exactly the kid OpenAI publishes. Never use the RFC test key in production; its private half is printed in the RFC.
Step 2: publish your key directory
Serve a JSON Web Key Set at https://:
- Media type
application/http-message-signatures-directory+json, served over HTTPS with a200, no redirects. - Public members only:
kty,crv,x(plus optional standard members likekid,nbf,exp). Never included. - Signed response. Cloudflare requires the directory response itself to be signed, one signature per key, with
tag="http-message-signatures-directory"and the request's@authority(marked with thereqparameter), so nobody can mirror your directory and register your keys as theirs. The current draft makes this signature recommended rather than required.
OpenAI's ChatGPT agent directory is a good live reference. On 23 November 2026, https://chatgpt.com/.well-known/http-message-signatures-directory returned the right media type, a single Ed25519 key with kid, nbf and exp, and a response signature over ("@authority";req "content-digest"). We rebuilt the signature base from that response and verified OpenAI's signature against its published key; it checked out, and the Content-Digest matched the body. Signing content-digest as well as the authority binds the signature to the key set itself, which is worth copying.
To check your own directory, Cloudflare publishes a CLI, http-signature-directory, on crates.io.
Step 3: sign requests in Python and Node
The signature base is a short text block: one line per signed component, then the @signature-params line, which is the exact value that goes into Signature-Input. Sign it, base64 the result, done.
import os, time
from urllib.parse import urlsplit
def sig_params(components, **params):
out = "(" + " ".join(f'"{c}"' for c in components) + ")"
for k, v in params.items():
out += f";{k}={v}" if isinstance(v, int) else f';{k}="{v}"'
return out
def web_bot_auth_headers(key, url, signature_agent, ttl=60, label="sig1"):
pub = key.public_key().public_bytes(serialization.Encoding.Raw, serialization.PublicFormat.Raw)
now = int(time.time())
sa = f'"{signature_agent}"' # string form: what Cloudflare verifies today
params = sig_params(["@authority", "signature-agent"],
created=now, expires=now + ttl, keyid=jwk_thumbprint(b64url(pub)),
alg="ed25519", nonce=base64.b64encode(os.urandom(64)).decode(),
tag="web-bot-auth")
base = (f'"@authority": {urlsplit(url).netloc.lower()}\n'
f'"signature-agent": {sa}\n'
f'"@signature-params": {params}').encode()
return {"Signature-Agent": sa,
"Signature-Input": f"{label}={params}",
"Signature": f"{label}=:{base64.b64encode(key.sign(base)).decode()}:"}
# usage with requests / httpx
headers = web_bot_auth_headers(key, "https://example.com/products", "https://bots.sparkproxy.io")
The same in Node 18+, using only the built-in crypto module:
import { createPublicKey, sign, createHash, randomBytes } from "node:crypto";
const thumbprint = (x) =>
createHash("sha256").update(JSON.stringify({ crv: "Ed25519", kty: "OKP", x })).digest("base64url");
export function webBotAuthHeaders(privateKey, url, signatureAgent, ttl = 60) {
const x = createPublicKey(privateKey).export({ format: "jwk" }).x;
const now = Math.floor(Date.now() / 1000);
const sa = `"${signatureAgent}"`;
const params = `("@authority" "signature-agent");created=${now};expires=${now + ttl}` +
`;keyid="${thumbprint(x)}";alg="ed25519";nonce="${randomBytes(64).toString("base64")}";tag="web-bot-auth"`;
const base = `"@authority": ${new URL(url).host}\n"signature-agent": ${sa}\n"@signature-params": ${params}`;
const sig = sign(null, Buffer.from(base), privateKey).toString("base64");
return { "Signature-Agent": sa, "Signature-Input": `sig1=${params}`, Signature: `sig1=:${sig}:` };
}
We validated the base construction in both languages against RFC 9421 Appendix B.2.6: signing that appendix's signature base with the RFC's Ed25519 test key reproduces the published signature byte for byte (Ed25519 is deterministic, so any formatting error changes the output). If you'd rather use a library, Cloudflare maintains the web-bot-auth npm package and Rust crate; on Python, the generic http-message-signatures package implements RFC 9421.
Practical rules from Cloudflare's docs that bite in production:
- Keep
expiresshort, around a minute. Cloudflare does not validate nonces or keep a replay database; expiry is the replay defence. - Sign only ASCII components, and avoid
@query-paramsand thesf,bs,keyandreqparameters on requests, which Cloudflare rejects. - Only sign
Content-Digestif nothing between you and the verifier can alter the body. - Always include
signature-agentin the component list; aSignature-Agentheader that isn't signed fails verification.
Step 4: test before you register
Two public endpoints help:
https://crawltest.com/cdn-cgi/web-bot-authtells you how Cloudflare parses your request:400for malformed or missing headers,401for a well-formed message with an unknown key (or a known key that failed),200once your key is registered and the signature verifies. A401on a fresh key is the result you want before registering.https://http-message-signatures-example.research.cloudflare.com/is Cloudflare Research's demo, which accepts the RFC 9421 test key so you can check signatures without registering anything.
Who verifies Web Bot Auth, and what it gets you
| Verifier | Since | What a valid signature does |
|---|---|---|
| Cloudflare | July 2025 (Verified Bots) | registered operators are labelled verified; register via the dashboard Bot Submission Form with "Request Signature" ([docs](https://developers.cloudflare.com/bots/reference/bot-verification/web-bot-auth/)) |
| Vercel | August 2025 | counts as a verified bot in Bot Protection and BotID ([changelog](https://vercel.com/changelog/vercels-bot-verification-now-supports-web-bot-auth)) |
| Akamai | November 2025 | treated as validated-bot traffic ([Akamai blog](https://www.akamai.com/blog/security/2025/nov/redefine-trust-web-bot-authentication)) |
| AWS WAF Bot Control | November 2025 | verified traffic allowed by default, with labels such as `bot:web_bot_auth:verified`, `invalid`, `expired` and `unknown_bot` ([announcement](https://aws.amazon.com/about-aws/whats-new/2025/11/aws-waf-web-bot-auth-support)) |
| DataDome | 2025 to 2026 | supported as a bot authentication method ([docs](https://docs.datadome.co/docs/bot-authentication)) |
| Shopify | May 2026 | asks bots and agents to identify via Web Bot Auth; unsigned bots get the strictest storefront rate limits ([changelog](https://shopify.dev/changelog/bots-and-agents-should-identify-themselves-via-web-bot-auth)) |
What none of them promise is access. Verification tells a site who you are; the site's rules decide what happens next. AWS WAF lets customers write rules on those labels, Cloudflare customers can allow, rate-limit or block verified bots individually, and Shopify developers have reported valid signatures still meeting 429 responses. For background on how those platforms score unsigned traffic, see our notes on AWS WAF bot control and Vercel BotID.
Which agents sign today
Confirmed from operators' own docs or live directories on 23 November 2026:
- OpenAI ChatGPT agent sends
Signature-Agent: "https://chatgpt.com", with a live, signed directory (OpenAI help). - Google-Agent signs a subset of its requests, using the dictionary form with the origin
https://agent.bot.goog; Google describes it as experimental (Google docs). - Cloudflare Browser Rendering signs its automated browser traffic, and users can't override those headers.
- Amazon Bedrock AgentCore Browser signs when you opt in (AWS docs).
- Browserbase publishes a key directory at its well-known path.
We found no published Web Bot Auth directory for Anthropic or Perplexity at their well-known paths on that date.
What Web Bot Auth does not do
- It identifies an operator, not an intent. A signature proves the request came from whoever controls the key at that URL. It says nothing about whether the request is welcome.
- It doesn't override site policy. robots.txt, terms and rate limits still apply; our guide to AI training opt-outs in robots.txt covers the policy side.
- It's linkable by design. The same key across sites means every site can correlate your traffic. That's the point for a crawler and a privacy problem for an agent acting for one person.
- Replay is possible until
expires. With no server-side nonce checking at Cloudflare, short expiry is your protection. - Revocation is manual. You remove a key from your directory and wait for caches to expire.
- The body isn't covered unless you sign
Content-Digest.
Signed agents behind proxies
Web Bot Auth deliberately ties identity to a key, not an address, which changes how proxies fit in. A signature over @authority and signature-agent survives any egress IP, so a signed agent can run from cloud regions, a fleet of workers or a proxy pool without re-registering IP ranges. The verifier trusts the key, not where the request came from.
Two cautions. First, use HTTPS through an HTTP CONNECT tunnel or SOCKS5 so nothing in between can touch headers; a TLS-intercepting proxy that rewrites headers will break signatures. Second, decide which mode each job runs in. A signed request announces your operator to every site it touches, which is right for a crawler or agent that wants to be recognised and allowed. For public-data collection where identity isn't the goal, proxies such as SparkProxy's datacenter pool (gateway.sparkproxy.io, rotating on 11000, sticky on 11002, SOCKS5 on 13000) handle geography and capacity, and mixing the two on the same key gives sites a reason to block the key. If you're building agents that browse, our guide to proxies for AI agents covers the network side.
Frequently asked questions
FAQ
Web Bot Auth is a protocol for bots and AI agents to authenticate their HTTP requests with cryptographic signatures. The operator publishes Ed25519 public keys at /.well-known/http-message-signatures-directory and signs each request with RFC 9421 HTTP Message Signatures, using the Signature, Signature-Input and Signature-Agent headers.
Not yet. RFC 9421, which it builds on, is a standard. The Web Bot Auth protocol itself is a working-group draft, draft-ietf-webbotauth-httpsig-protocol-01 (29 October 2026), in the IETF webbotauth working group chartered in October 2025.
Cloudflare fetches your key directory, checks the Ed25519 signature on each request, and labels traffic from registered operators as verified bots. You register through the Bot Submission Form in the dashboard, choosing "Request Signature" and entering your directory URL. Cloudflare currently expects the quoted-string form of Signature-Agent, not the dictionary form from later drafts.
Yes. Since November 2025, AWS WAF Bot Control verifies Web Bot Auth signatures and allows verified traffic by default. It adds labels such as web_bot_auth:verified, invalid, expired and unknown_bot that you can use in your own rules.
No. A valid signature identifies your operator; it doesn't grant access. Sites can still block, challenge or rate-limit a verified bot, and an identified bot that ignores a site's rules is easier to block than an anonymous one.
Yes. The signature covers the target host and your Signature-Agent header, not your IP, so it verifies from any egress address. Tunnel HTTPS through the proxy so headers aren't modified in transit.
Get 20% off your first month
Premium datacentre proxies with unlimited bandwidth. Use the code at checkout.
Save up to 15% more on quarterly, half-yearly and yearly plans
Related articles

cf_clearance Cookie Explained: What Cloudflare Stores
The cf_clearance cookie explained from Cloudflare's docs: clearance levels, lifetime, Precursor, Turnstile pre-clearance, attributes, and what it's tied to.

Browser Does Not Support SOCKS5 Proxy Auth: Fix
Fix Playwright's 'Browser does not support socks5 proxy authentication' and Puppeteer's ERR_NO_SUPPORTED_PROXIES: why Chromium can't, and three tested fixes.

Turnstile Token Missing, Rejected or Expired: Fixes
Fix Turnstile token errors on your own forms: missing-input-response, invalid-input-response, timeout-or-duplicate, the 300-second rule and test keys.
