Cloudflare Pay Per Crawl vs L402
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]
Quick facts comparison
| Field | Cloudflare Pay Per Crawl | L402 |
|---|---|---|
| Category | Pay | Pay |
| Tier & lifecycle | Flagship · Active | Flagship · Active |
| 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] |
| 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] |
| 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] |
| 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] |
| 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] |
| Form | HTTP header | HTTP header |
| 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] |
| 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] |
| Primary specification | What is Pay Per Crawl? [1] | Master L402 spec and pinned bLIP-0026 snapshot. [11][20] |
| Last checked | 2026-11-12 | 2026-11-06 |
Problem, mechanism & scope
- 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, andBlockcontrols 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 dynamiccrawler-pricequotes—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 billablecrawler-chargedevents into a single daily card or bank charge processed through Stripe (with monthly publisher payouts) rather than settling per-request on the wire, and evaluatingAlloworChargeonly after existing WAF and Bot Management rulesets. [1][2][7][9][10] - 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]
Overview
Cloudflare Pay Per Crawl
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]
L402
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]
Adoption and ecosystem
Cloudflare Pay Per Crawl
L402
References
- 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/
- 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/
- 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/
- Cloudflare, Web Bot Auth, updated 2026-10-08 — https://developers.cloudflare.com/bots/reference/bot-verification/web-bot-auth/
- 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/
- Matthew Conroy, Cloudflare Blog, Making AI search smarter, published 2026-07-01 — https://blog.cloudflare.com/making-ai-search-smarter/
- 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/
- 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/
- 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/
- 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/
- Lightning Labs, L402 Protocol Specification, fetched 2026-10-30 — https://raw.githubusercontent.com/lightninglabs/L402/master/protocol-specification.md
- Lightning Labs, L402: Lightning HTTP 402 Protocol, fetched 2026-10-30 — https://raw.githubusercontent.com/lightninglabs/L402/master/README.md
- 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
- 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
- Tempo and Stripe, What is MPP?, fetched 2026-10-30 — https://mpp.dev/overview.md
- 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
- R. Fielding, M. Nottingham, and J. Reschke (eds.), RFC 9110: HTTP Semantics, June 2022 — https://www.rfc-editor.org/rfc/rfc9110.html
- Olaoluwa Osuntokun, Lightning Labs, L402: Authentication and Payments for the Lightning-Native Web, March 30, 2020 — https://lightning.engineering/posts/2020-03-30-lsat/
- Lightning Labs, lightninglabs/L402 repository, created 2020-02-07; fetched 2026-10-30 — https://github.com/lightninglabs/L402
- 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
- Lightning Specification (BOLTs), Comments on lightning/blips pull request 26, fetched 2026-10-30 — https://github.com/lightning/blips/issues/26
- Lightning Labs, lightninglabs/L402 commits, fetched 2026-10-30 — https://github.com/lightninglabs/L402/commits
- 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
- Lightning Labs, Aperture | Builder's Guide, fetched 2026-10-30 — https://docs.lightning.engineering/lightning-network-tools/aperture