dashboard
← all posts

How a crawler signs a request — and what that proves

2026-11-19

Every visit this site logs carries a User-Agent header, and every honeypot statistic on the dashboard is grouped by it. That is a weak foundation, and we know it. A User-Agent is a string the client picks. Typing ClaudeBot costs nothing, and the log is full of clients that try several names in a row: one address announcing itself as ClaudeBot, ChatGPT-User, GPTBot and PerplexityBot within four seconds. The bots in the trap weren't the bots looks at that pattern in the honeypot data.

Web Bot Auth is the attempt to replace that claim with something checkable. This post explains the mechanism from the ground up, because we are about to publish numbers that depend on it, and those numbers only mean something if it is clear what they measure.

The standard underneath: RFC 9421

The cryptography is not new. RFC 9421, HTTP Message Signatures, was published in February 2024 and is a general way to sign parts of an HTTP message. It defines three things:

For a crawler fetching /robots.txt here, the signature base looks roughly like this:

"@authority": goodbot-badbot.com
"signature-agent";key="sig1": "https://crawler.example/.well-known/http-message-signatures-directory"
"@signature-params": ("@authority" "signature-agent";key="sig1");created=1793700000;expires=1793700300;keyid="…";alg="ed25519";tag="web-bot-auth"

The crawler signs that text with its private key. The site rebuilds the same text from the request it received and checks the signature against the public key.

What Web Bot Auth adds

RFC 9421 says how to sign. It does not say who is signing or where to find their key. The IETF chartered the Web Bot Auth working group to fill that gap for automated traffic. Its protocol document, draft-ietf-webbotauth-httpsig-protocol, is on revision 01 (29 October 2026) and aims for the Standards Track. It grew out of two individual drafts by the same authors, from Cloudflare and Google, which expired in September 2026. It is still a draft, and it has changed under implementers before. The next section shows how.

The working-group draft fixes a profile on top of RFC 9421:

The header that changed shape

Signature-Agent is where we got caught, twice. Early drafts defined it as a bare string:

Signature-Agent: "https://crawler.example/…"

The current draft makes it a dictionary keyed by the signature label, and covers the member with a key parameter:

Signature-Agent: sig1="https://crawler.example/…"
Signature-Input: sig1=("@authority" "signature-agent";key="sig1");…

The two forms differ by a few characters on the wire, and a verifier that expects one cannot read the other. The draft allows verifiers to keep accepting the old form during the transition, but signers must send the new one. A verifier written against an earlier draft rejects every up-to-date signer. Ours was, and did.

In practice, the transition is slow. AhrefsBot, the most frequent signer here, still sends the old form.

A website is not a key directory

The second trap is the value. AhrefsBot sends

Signature-Agent: "https://ahrefs.com"

and ibou sends https://ibou.io. Both are the address of a website, not of a key directory, and fetched as given, as the draft says, they return a homepage. Their keys are where convention puts them, at /.well-known/http-message-signatures-directory under that address, but nothing in the header says so. The two crawlers are in good company: the example in the earlier directory draft (draft-meunier-http-message-signatures-directory-05, Appendix A.3) uses a bare address too, and that draft never says whether the value names the directory or the site.

So a verifier that follows the text rejects signers that follow the example. Until 17 November, ours did, and every AhrefsBot signature failed. Zero verified — our bug, not theirs has the numbers and the four faults it took to get to the first verified AhrefsBot request.

What a valid signature proves

This is the paragraph to keep in mind when reading the dashboard. The working-group draft puts it unusually plainly (§4.1):

A valid signature over a resolved URL proves that a holder of a key that URL publishes signed the covered message. […] It says nothing about who operates the Agent, whether the Agent is benign, or whether the request is authorized.

In practice:

So the dashboard's verified column does not mean "this really was Anthropic" or "this bot is good." It means "this request came from the same key holder as every other request under that URL," which turns a guessable string into a stable identifier. For a site that ranks crawlers by behaviour, that is exactly what is missing: if a signed crawler walks into a honeypot, it cannot be blamed on someone wearing its name.

What this site does with it

Every request that carries Signature and Signature-Input is checked, one signature label at a time (at most three per request). For each label the site:

  1. requires that it covers @authority or @target-uri, plus the Signature-Agent member keyed to that label;
  2. takes the directory URL from that member only, or from the old single-string form, ignoring members with parameters and anything that is not https. An address with no path, or only /, is read as its well-known directory. That goes beyond the draft, which says to fetch the value as given, and is there for the signers described above;
  3. fetches that directory (cached for an hour) and finds the key by kid or, failing that, by its thumbprint;
  4. rebuilds the signature base and verifies it, with an age limit of one day.

A visit is stored as verified if any label passes, as failed if the request was signed but none did, and with no status if it was unsigned. The site does not block or favour anyone based on the result. As with robots.txt, the point is to measure, not to enforce.

Sources and further reading