CrawlCheck

Specification

CrawlCheck-Receipt header, v1

Versionv1
Status—
Document kindCrawlCheck-Receipt
Text sha256b0398b7270c9c556…

The markdown source: /spec/receipt-header?format=md (or send Accept: text/markdown) · every published document: /spec/extensions.json · all specifications

Change log

Recorded automatically: each time this text changes, its sha256 and the date are added. Recording started 2026-10-14 (Mountain Time); earlier history is in the text where it states one.

Worked example

  1. Request
    curl -s -X POST https://crawlcheck.io/api/v1/preflight \
      -H 'content-type: application/json' \
      -d '{"domain":"example.com","action":"read","agent":"my-agent"}' > receipt.json
  2. What comes back: a signed decision receipt (kind crawlcheck-decision) with its sha256, the value you send as CrawlCheck-Receipt: v=1; sha256=….
  3. Verify it offline
    curl -O https://crawlcheck.io/crawlcheck-verify.mjs
    node crawlcheck-verify.mjs --online receipt.json
    The verifier is one file with no dependencies; --online fetches the published keys once.

The document

An agent that asked CrawlCheck before acting can prove it to the site it acts on.

Agent side

  1. POST https://crawlcheck.io/api/v1/preflight {"domain": "<site>", "action": "read|cite|connect|transact|administer", "agent": "<your agent name>"}
  2. If the decision is one your policy accepts, send the request to the site with:
CrawlCheck-Receipt: v=1; sha256=<the receipt's sha256>

The receipt itself is not sent; only its digest. Send it only to the domain the receipt names, and only before expires_at.

Site side

Check a header you receive:

GET https://crawlcheck.io/api/v1/decisions/<sha256>?host=<your host>

The answer gives accept (true when the receipt names your host, has not expired and its decision is allow or warn), the checks behind it, and the full signed receipt, which verifies offline with https://crawlcheck.io/crawlcheck-verify.mjs. What you do with an accepted receipt is your choice: a higher rate limit, fewer challenges, or only a log line. Every check you make is kept for your site: GET https://crawlcheck.io/api/v1/decisions/checked?domain=<your host> lists which agents asked before acting, and a domain on record sees the same on /manage.

Cloudflare Worker example (cache the answer per sha256 for its lifetime in your own code if you check often):

const RE = /sha256=([0-9a-f]{64})/i;
export default { async fetch(req, env, ctx) {
  const m = (req.headers.get("crawlcheck-receipt") || "").match(RE);
  if (m) {
    const host = new URL(req.url).hostname;
    const r = await fetch("https://crawlcheck.io/api/v1/decisions/" + m[1] + "?host=" + host).then((x) => x.json()).catch(() => null);
    if (r && r.accept) { const res = await fetch(req); const h = new Response(res.body, res); h.headers.set("x-crawlcheck-receipt", "accepted"); return h; }
  }
  return fetch(req);
} };

Privacy

CrawlCheck counts site checks per day (checked, found, accepted, by decision and action). It keeps no domains and no agent names from these checks. Daily counts: https://crawlcheck.io/api/v1/decisions