{
 "url": "https://agenticweb.wiki/compare/cloudflare-pay-per-crawl-vs-l402/",
 "title": "Cloudflare Pay Per Crawl vs L402: differences & adoption",
 "description": "Cloudflare Pay Per Crawl vs L402: architecture differences, wire formats, governance, and verified ecosystem adoption.",
 "markdown_url": "https://agenticweb.wiki/compare/cloudflare-pay-per-crawl-vs-l402/index.md",
 "markdown": "# Cloudflare Pay Per Crawl vs L402\n\n**Domains:** Crawler Policy, Licensing & Usage Preferences × Payments & On-Chain Settlement · **Relationship:** Related specifications\n\n**Cloudflare Pay Per Crawl** *(peer alternative to L402)*: Pay Per Crawl returns HTTP 402 pricing with Cloudflare as merchant. L402 returns a macaroon and BOLT 11 invoice. [1][11]\n\n## Quick facts comparison\n\n| Field | Cloudflare Pay Per Crawl | L402 |\n| --- | --- | --- |\n| **Category** | [Pay](/category/pay/) | [Pay](/category/pay/) |\n| **Tier & lifecycle** | Flagship · Active | Flagship · Active |\n| **Track** | Vendor / Spec-Site Standard — Cloudflare AI Crawl Control product feature [1] | Lightning Labs text in lightninglabs/L402. bLIP-0026 is an open lightning/blips pull request. [12][19][23] |\n| **Originated by** | Will Allen and Simon Newton, Cloudflare Blog (2025-07-01) [2] | Lightning Labs (repo 2020-02-07). Osuntokun, Gugger, and Paulino authored bLIP-0026 (2023-06-06). [12][18][19][20] |\n| **Governed by** | Cloudflare (Merchant of Record and technical infrastructure) [1][2] | Lightning Labs repo lightninglabs/L402. Roasbeef plans to continue development there. [12][19][21][23] |\n| **Status** | Closed beta (documentation updated 2026-07-28); introduced in private beta on 2025-07-01; `Pay Per Use` search experiments with Ceramic.ai (`pay-per-query`) and You.com announced on 2026-07-01 [1][3][6] | bLIP-0026 is Status: Active. Aperture is in production in Loop and Pool. PR 26 is unmerged. [20][23][24] |\n| **Latest version** | Unnumbered. Private beta (2025-07-01); Discovery API, custom pricing & per-URI `Disable Pay Per Crawl` Configuration Rules (2025-12-10); restated per-URI exemptions & dynamic pricing (2026-06-16); `Pay Per Use` search evolution announced (2026-07-01) [3][6] | Master branch omits a version parameter; pinned bLIP-0026 snapshot uses version=\"0\". [11][20][22] |\n| **Form** | HTTP header | HTTP header |\n| **Wire / transport** | `crawler-price`, `crawler-exact-price`, `crawler-max-price`, `crawler-charged`, `crawler-error`, `cf-pay-per-crawl`, `Signature`, `Signature-Input`, `Signature-Agent` [2][3][5][8] · HTTP status codes (`402 Payment Required`, `200 OK`) with currency-and-amount headers (`crawler-price: USD 0.01`, `crawler-charged: USD 0.01`) and Ed25519 `RFC 9421` signatures [4][5] · HTTP / HTTP/2 over TLS (`HTTP/2 402 Payment Required` challenge; `HTTP 200` on accepted price commitment) [1][5] | Master challenge is macaroon plus invoice; bLIP snapshot uses version, token, and invoice. Authorization carries the preimage. [11][20] · HTTP and gRPC. [11] |\n| **Found at** | HTTP 402 with `crawler-price`; Discovery API `GET https://crawlers-api.ai-audit.cfdata.org/charged_zones` (authenticated via Web Bot Auth) [2][3] | No fixed path. A paid resource MUST return HTTP 402 with WWW-Authenticate. [11] |\n| **Primary specification** | [What is Pay Per Crawl?](https://developers.cloudflare.com/ai-crawl-control/features/pay-per-crawl/what-is-pay-per-crawl/) [1] | Master [L402 spec](https://raw.githubusercontent.com/lightninglabs/L402/master/protocol-specification.md) and pinned [bLIP-0026](https://raw.githubusercontent.com/Roasbeef/blips/697ae354c205f1aacc450e72067c92a7f2467321/blip-0026.md) snapshot. [11][20] |\n| **Last checked** | 2026-11-12 | 2026-11-06 |\n\n## Problem, mechanism & scope\n\n- **Cloudflare Pay Per Crawl problem, mechanism & scope boundary:** Without an edge payment mechanism, publishers and website owners face a binary choice between leaving content open to AI scraping and locking their sites behind a walled garden, because negotiating bilateral licensing deals requires scale and leverage. [2] Pay Per Crawl introduces per-crawler `Allow`, `Charge`, and `Block` controls at the CDN edge—backed by Web Bot Auth cryptographic verification, pre-crawl domain discovery (`GET https://crawlers-api.ai-audit.cfdata.org/charged_zones`), and static or dynamic `crawler-price` quotes—so publishers can charge verified crawlers per request while withholding content (functionally equivalent to HTTP 403) from crawlers that lack a billing relationship. [2][3] Pay Per Crawl operates in closed beta with Cloudflare as Merchant of Record, aggregating billable `crawler-charged` events into a single daily card or bank charge processed through Stripe (with monthly publisher payouts) rather than settling per-request on the wire, and evaluating `Allow` or `Charge` only after existing WAF and Bot Management rulesets. [1][2][7][9][10]\n- **L402 problem, mechanism & scope boundary:** Although the HTTP specification historically marked status code 402 as reserved for future use, conventional API monetization forces callers through user accounts, passwords, sign-up forms, and monthly subscriptions rather than accountless, per-request payments where users pay only for what they use. [11][12] The credential is a macaroon (an HMAC-chain bearer token) that cryptographically commits to the invoice's payment hash. This binding enables stateless verification: the server checks `H == sha256(preimage)` against the hash embedded in the macaroon, with no database lookup required. [11] The 402 status code is used exclusively for the initial payment challenge. Once a client presents a credential (valid or not), the server MUST respond with 401 if verification fails, not 402. This distinction lets clients differentiate \"you need to pay\" from \"your credential is broken.\" [11]\n\n## Overview\n\n### Cloudflare Pay Per Crawl\n\n*This page is about Cloudflare Pay Per Crawl, a Cloudflare AI Crawl Control feature in closed/private beta. It is not the open x402 payment protocol or general HTTP 402 Payment Required uses. [1]*\n\n**Cloudflare Pay Per Crawl** is a feature of Cloudflare AI Crawl Control, introduced by Will Allen and Simon Newton on 2025-07-01, that lets site owners control and monetize AI crawler access by setting a price per zone. [1][2][3] Acting as Merchant of Record, Cloudflare serves an `HTTP 402 Payment Required` price challenge or returns `HTTP 200 OK` when a verified crawler presents payment intent. [2] Crawlers authenticate via Web Bot Auth (`Ed25519` keys at `/.well-known/http-message-signatures-directory` with `signature-agent`, `signature-input`, and `signature`) and sign either a reactive `crawler-exact-price` or proactive `crawler-max-price` header inside `signature-input`. Covered requests receive `HTTP 200 OK` with `crawler-charged`, whereas unpaid or invalid requests receive `HTTP 402` with `crawler-price` (and `crawler-error` on mismatch). [2][4][5] The closed beta (`dateModified` 2026-07-28) added the `charged_zones` Discovery API and `crawler-error` codes (2025-12-10), dynamic pricing via `cf-pay-per-crawl` (2026-06-16), `Pay Per Use` search experiments with Ceramic.ai and You.com (2026-07-01), and a planned `x402` deferred-payment integration. [1][3][6][7]\n\n### L402\n\n*This page is about L402 (formerly LSAT), the Lightning Labs HTTP 402 authentication and payment scheme. It is not [x402](/protocols/x402/), the open payment protocol originated at Coinbase; not [MPP](/protocols/mpp/), the Machine Payments Protocol co-authored by Tempo and Stripe using the Payment authentication scheme; and not the bare HTTP 402 status code in RFC 9110 (see [HTTP 402 Payment Required](/terms/http-402-payment-required/)). [11][12][13][14][15][16][17]*\n\n**L402** (formerly Lightning Service Authentication Tokens, or `LSAT`) is an HTTP and gRPC challenge-response authentication scheme originated by Lightning Labs that combines HTTP 402 (`Payment Required`) responses with Lightning Network invoices for paid API access. [11][12][18] First committed to `lightninglabs/L402` on 2020-02-07 and announced by Olaoluwa Osuntokun on 2020-03-30, it pairs a bearer credential with a Lightning invoice so a client can pay for a preimage and present both as proof of payment. [11][18][19] When a server requires payment for a resource, the master specification requires an HTTP 402 response carrying `WWW-Authenticate: L402 macaroon=\"<base64>\", invoice=\"<bolt11>\"`, and the client retries the request with `Authorization: L402 <base64(macaroon)>:<hex(preimage)>`. [11] For backward compatibility after the rename from `LSAT`, servers should send both `LSAT` and `L402` challenges and both parties must accept either scheme in `Authorization`. [11] A token-agnostic revision (`bLIP-0026`, created 2023-06-06) uses `WWW-Authenticate: L402 version=\"0\", token=\"T\", invoice=\"P\"`, while active development continues in `lightninglabs/L402` (which reverted the `bLIP-0026` header changes on 2026-03-20). [19][20][21][22]\n\n## Adoption and ecosystem\n\n### Cloudflare Pay Per Crawl\n\nSee verified implementations and cited ecosystem censuses on the [Cloudflare Pay Per Crawl protocol page](/protocols/cloudflare-pay-per-crawl/#adoption-and-ecosystem).\n\n### L402\n\nSee verified implementations and cited ecosystem censuses on the [L402 protocol page](/protocols/l402/#adoption-and-ecosystem).\n\n## References\n\n1. Cloudflare, *What is Pay Per Crawl?*, updated 2026-07-28 — https://developers.cloudflare.com/ai-crawl-control/features/pay-per-crawl/what-is-pay-per-crawl/\n2. Will Allen and Simon Newton, Cloudflare Blog, *Introducing pay per crawl: Enabling content owners to charge AI crawlers for access*, published 2025-07-01; modified 2026-07-15 — https://blog.cloudflare.com/introducing-pay-per-crawl/\n3. Cloudflare, *AI Crawl Control changelog*, checked 2026-11-03; latest Pay Per Crawl entry 2026-06-16 — https://developers.cloudflare.com/ai-crawl-control/changelog/\n4. Cloudflare, *Web Bot Auth*, updated 2026-10-08 — https://developers.cloudflare.com/bots/reference/bot-verification/web-bot-auth/\n5. Cloudflare, *Crawl pages*, updated 2026-04-23 — https://developers.cloudflare.com/ai-crawl-control/features/pay-per-crawl/use-pay-per-crawl-as-ai-owner/crawl-pages/\n6. Matthew Conroy, Cloudflare Blog, *Making AI search smarter*, published 2026-07-01 — https://blog.cloudflare.com/making-ai-search-smarter/\n7. Cloudflare Blog, *Launching the x402 Foundation with Coinbase, and support for x402 transactions*, published 2025-09-23; modified 2026-07-15 — https://blog.cloudflare.com/x402/\n8. Cloudflare, *Discover payable content*, updated 2026-04-23 — https://developers.cloudflare.com/ai-crawl-control/features/pay-per-crawl/use-pay-per-crawl-as-ai-owner/discover-payable-content/\n9. Cloudflare, *Connect Stripe*, updated 2026-04-23 — https://developers.cloudflare.com/ai-crawl-control/features/pay-per-crawl/use-pay-per-crawl-as-ai-owner/connect-to-stripe/\n10. Cloudflare, *Manage payouts*, updated 2026-04-23 — https://developers.cloudflare.com/ai-crawl-control/features/pay-per-crawl/use-pay-per-crawl-as-site-owner/manage-payouts/\n11. Lightning Labs, *L402 Protocol Specification*, fetched 2026-10-30 — https://raw.githubusercontent.com/lightninglabs/L402/master/protocol-specification.md\n12. Lightning Labs, *L402: Lightning HTTP 402 Protocol*, fetched 2026-10-30 — https://raw.githubusercontent.com/lightninglabs/L402/master/README.md\n13. x402 Foundation, *x402 Protocol Specification*, protocol version 2; fetched 2026-10-30 — https://github.com/x402-foundation/x402/blob/main/specs/x402-specification-v2.md\n14. Linux Foundation, *Linux Foundation Announces Operational Launch of x402 Foundation to Standardize Internet-Native Payments for AI Agents and Applications*, July 14, 2026 — https://www.linuxfoundation.org/press/linux-foundation-announces-operational-launch-of-x402-foundation-to-standardize-internet-native-payments-for-ai-agents-and-applications\n15. Tempo and Stripe, *What is MPP?*, fetched 2026-10-30 — https://mpp.dev/overview.md\n16. B. Ryan, J. Moxey, and T. Meagher (Tempo Labs); J. Weinstein and S. Kaliski (Stripe), *The \"Payment\" HTTP Authentication Scheme (draft-httpauth-payment-01 HTML)*, draft-httpauth-payment-01, September 2026 — https://datatracker.ietf.org/doc/html/draft-httpauth-payment-01\n17. R. Fielding, M. Nottingham, and J. Reschke (eds.), *RFC 9110: HTTP Semantics*, June 2022 — https://www.rfc-editor.org/rfc/rfc9110.html\n18. Olaoluwa Osuntokun, Lightning Labs, *L402: Authentication and Payments for the Lightning-Native Web*, March 30, 2020 — https://lightning.engineering/posts/2020-03-30-lsat/\n19. Lightning Labs, *lightninglabs/L402 repository*, created 2020-02-07; fetched 2026-10-30 — https://github.com/lightninglabs/L402\n20. Olaoluwa Osuntokun, Oliver Gugger, and Wilmer Paulino, *bLIP-0026: L402: The Lightning HTTP 402 Protocol*, created 2023-06-06 — https://raw.githubusercontent.com/Roasbeef/blips/697ae354c205f1aacc450e72067c92a7f2467321/blip-0026.md\n21. Lightning Specification (BOLTs), *Comments on lightning/blips pull request 26*, fetched 2026-10-30 — https://github.com/lightning/blips/issues/26\n22. Lightning Labs, *lightninglabs/L402 commits*, fetched 2026-10-30 — https://github.com/lightninglabs/L402/commits\n23. Roasbeef, *blip-0026: L402 - Lightning HTTP 402 Protocol (lightning/blips pull request 26)*, opened 2023-06-07; fetched 2026-10-30 — https://github.com/lightning/blips/pull/26\n24. Lightning Labs, *Aperture | Builder's Guide*, fetched 2026-10-30 — https://docs.lightning.engineering/lightning-network-tools/aperture\n"
}