Skip to content
AnswerWell geo Documentation

Research · 8 min read · Answerwell

Pay Per Crawl: URI Patterns, Dynamic Pricing and WAF Rule Order

How Pay Per Crawl charges AI crawlers per request, exempts URI patterns, sets in-band prices, and interacts with WAF and bot rules.

This page summarises Cloudflare AI Crawl Control documentation on Pay Per Crawl: requiring payment from verified AI crawlers on each successful content access, while publishers configure zone defaults, free paths, and optional per-response pricing. Pay Per Crawl is part of AI Crawl Control alongside Manage AI crawlers and traffic analysis; it is described in docs as currently in closed beta.

Pay Per Crawl enables site owners to require payment from AI crawlers every time the crawlers access their content, thereby fostering a fairer Internet by enabling site owners to control and monetize how their content gets used by AI.

— Cloudflare, Introducing Pay Per Crawl (private beta)

Pay Per Crawl: what site owners and crawler operators get

Section titled “Pay Per Crawl: what site owners and crawler operators get”

Pay Per Crawl is a monetisation and access-control layer for AI crawlers (bots that scrape sites for AI models, RAG, or training, as defined in the AI Crawl Control glossary). For each crawl—a single HTTP request from a bot—either the crawler pays and receives HTTP 200, or it sees HTTP 402 Payment Required with a price until it sends payment intent headers.

Pay per crawl is a feature of AI Crawl Control that enables site owners to control and monetize AI crawler access to content by setting a price per zone.

— Cloudflare, What is Pay Per Crawl?

Cloudflare acts as Merchant of Record for the programme and runs billing through Stripe. Site owners set a default price, choose which crawlers to Charge, Allow, or Block, and can use Advanced configuration for URI exemptions and in-band (per-response) pricing. Crawler operators verify the bot, connect Stripe, optionally call the Discovery API, then follow the Crawl pages header protocol.

Role Main steps (docs)
Site owner Enable in account settings → Set a pay per crawl price → Select crawlers to charge → Monitor activity → Manage payouts
AI crawler owner Set up your account → Verify your AI crawler → Discover payable content → Connect Stripe → Crawl pages

Site owner setup: account visibility, price, and crawler actions

Section titled “Site owner setup: account visibility, price, and crawler actions”

Account-level visibility must be turned on before domain admins can configure Pay Per Crawl. An Administrator or Super Administrator selects domains in Manage Account > Settings > Configurations > Pay Per Crawl and sets Visibility to Visible; that only exposes controls—it does not change security rules (Enable in account settings).

On the domain, enable Pay Per Crawl on the Payments tab, set the default per crawl price (minimum $0.001 USD per successful HTTP 200 retrieval), and optionally enable dynamic pricing (Set a pay per crawl price). Per the Pay Per Crawl FAQ, you can set Block, Charge, or Allow per crawler, but only one zone default price applies to all crawlers on Charge—not different prices per crawler identity.

In AI Crawl Control > Security, assign Charge, Allow, or Block per crawler (Select crawlers to charge). Use the Category column to spot Search Engine crawlers: blocking or charging them may hurt SEO. Payouts require a dedicated Cloudflare Stripe Connect account created in the dashboard; pre-existing Stripe accounts are not compatible (Manage payouts).

Disable Pay Per Crawl by URI pattern: free paths for discovery

Section titled “Disable Pay Per Crawl by URI pattern: free paths for discovery”

Disable Pay Per Crawl by URI pattern lets you charge for premium URLs while keeping navigation, homepages, or public sections free—so crawlers can discover paid content without paying for every hop.

You may want to offer free access to certain pages while charging for others: Allow free access to homepages, category pages, or navigation to help crawlers discover paid content. Exclude functional pages like login, search, or API endpoints that don’t contain chargeable content.

— Cloudflare, Advanced configuration

Use Configuration Rules (Rules > Overview > Create rule > Configuration Rule). Match URI Full (wildcard, exact, or prefix), add Disable Pay Per Crawl, and deploy. Example from docs: wildcard https://*example.com/public/* for a free directory; exact https://example.com/ for a free homepage.

Some paths are always free on Pay Per Crawl zones, regardless of rules:

  • /robots.txt
  • /sitemap.xml
  • /security.txt
  • /.well-known/security.txt
  • /crawlers.json

When Pay Per Crawl is disabled for a matching URI pattern, crawler requests pass through without blocking or charging (changelog: Configure free pages).

Dynamic pricing: crawler-price and cf-pay-per-crawl

Section titled “Dynamic pricing: crawler-price and cf-pay-per-crawl”

Dynamic pricing (docs call this in-band pricing in the glossary) overrides the zone default when the origin or edge sets a crawler-price response header, for example crawler-price: USD 3.14. Enable dynamic pricing in Pay Per Crawl settings, then return that header from the origin or set it in a Cloudflare Worker.

When the crawler-price header is present in a response, the price it specifies will be used instead of the default price specified in the Pay Per Crawl settings for the zone.

— Cloudflare, Advanced configuration

On every origin request, Pay Per Crawl adds cf-pay-per-crawl, e.g. cf-pay-per-crawl: protocol=cloudflare, pricing=in-band. The pricing indicator can be:

Value Meaning
zone-default Dynamic pricing not enabled; use zone default
in-band Dynamic pricing enabled; origin or Worker should set crawler-price when appropriate
bypass Request not subject to payment (for example, not a bot)

Your origin logic can read cf-pay-per-crawl and only emit crawler-price when pricing=in-band. Snippets can see the request header but cannot set crawler-price—response transforms at that stage are too late for Pay Per Crawl; use a Worker or the origin (Advanced configuration).

WAF custom rules vs Pay Per Crawl: order of precedence

Section titled “WAF custom rules vs Pay Per Crawl: order of precedence”

Pay Per Crawl does not run in isolation. AI Crawl Control with Cloudflare WAF and AI Crawl Control with Cloudflare Bots document a fixed order:

  1. WAF custom rules (including AI Crawl Control crawler blocks) run first.
  2. Cloudflare Bot Solutions run next.
  3. Pay Per Crawl runs after bot solutions.

Implications:

  • Country block + Pay Per Crawl: Traffic from blocked countries stays blocked even if the crawler would pay (AI Crawl Control with Cloudflare WAF).
  • Allow search engine bots (WAF) + charge all AI crawlers: Only bots allowed by the custom rule reach the site; those that qualify may still be charged by Pay Per Crawl. Docs note this illustrates precedence; allowing well-behaved search bots may still be better for indexing.
  • Block AI Bots (Bot Management) + Pay Per Crawl: You must turn off Block AI Bots so Pay Per Crawl can run as intended (AI Crawl Control with Cloudflare Bots).

AI crawler access: Discovery API, HTTP 402, and payment headers

Section titled “AI crawler access: Discovery API, HTTP 402, and payment headers”

Discover payable content before probing URLs

Section titled “Discover payable content before probing URLs”

Verified crawlers can list participating zones without trial 402 responses:

A new authenticated API endpoint allows verified crawlers to programmatically discover domains participating in Pay Per Crawl.

— Cloudflare, Discover payable content

GET https://crawlers-api.ai-audit.cfdata.org/charged_zones requires Web Bot Auth (Signature, Signature-Input, Signature-Agent). Missing domains means the publisher has not enabled charging for your crawler; they may still block you via WAF or robots.txt (Discover payable content). Cache results and refresh periodically.

Pay for a crawl: 402, then price headers, then 200

Section titled “Pay for a crawl: 402, then price headers, then 200”

On a protected URL, the first response may be HTTP 402 with crawler-price: USD 0.01 (Crawl pages). Send one of:

  • crawler-exact-price — must match crawler-price exactly.
  • crawler-max-price — accept any page whose crawler-price is less than or equal to your maximum.

On success, HTTP 200 includes crawler-charged (billable amount). Cloudflare recommends logging crawler-charged for spend tracking. Error responses are not billed, even if price headers were sent (Pay Per Crawl FAQ). Failures may include crawler-error with codes such as InvalidCrawlerExactPrice or CrawlerForbidden—see the full table in Error codes.

Crawler operators connect Stripe under Manage Account > Settings > Configurations > Pay Per Crawl; Cloudflare is not responsible for configuring spending limits on the crawler side (Connect Stripe). Charges record on successful delivery with valid price headers; invoices run through Stripe (Connect Stripe, Manage payouts).

For broader crawler policy (not only payment), see Manage AI crawlers and monitor activity guidance on robots.txt and pricing adjustments. Related non–Pay Per Crawl monetisation patterns appear under Charge for HTTP content and x402 charge for HTTP content with Bot Management thresholds—distinct from AI Crawl Control’s Pay Per Crawl product path.

  1. In the Cloudflare dashboard, confirm Pay Per Crawl visibility and enablement via Enable in account settings and Set a pay per crawl price, then review crawler Charge / Allow / Block in Select crawlers to charge.
  2. Validate Configuration Rules that Disable Pay Per Crawl on intended free URI patterns, and confirm always-free paths (/robots.txt, /sitemap.xml, etc.) respond without charge (Advanced configuration).
  3. If using dynamic pricing, verify origin or Worker behavior against cf-pay-per-crawl and that crawler-price appears on HTTP 402 when payment is required (Advanced configuration).
  4. Review WAF and Bot Management order so Pay Per Crawl is not negated by earlier blocks (AI Crawl Control with Cloudflare WAF, AI Crawl Control with Cloudflare Bots); use Monitor activity for earnings and crawler patterns.
  5. You can check automatically in Answerwell (our tool): https://answerwell.org/workspace

If something on this page is wrong or unclear, email yimasynthetic@gmail.com with the page URL and the exact statement you are asking about, and we will correct or clarify it.