Skip to content
RU
← All articles

Cloudflare AI Crawl Control and Pay Per Crawl

Quick answer

Set Cloudflare AI Crawl Control to Allow for crawlers you want reaching public pages, Block for crawlers you intend to deny, and Charge for selected crawlers if your zone has Pay Per Crawl access. Check WAF and bot rules before interpreting the result. When you see HTTP 402, look for the pricing header to distinguish an automated offer from a custom licensing block.

Three paths leading from a network gateway
Choose access policy for each crawler at the edge.

How Cloudflare AI Crawl Control handles a request

AI Crawl Control applies a crawler-specific decision at Cloudflare’s edge. Start by checking that the hostname you want to manage is served through the intended Cloudflare zone. A separate documentation hostname may have different rules even when readers think of it as part of the same site. Record the exact hostname, crawler, public path and effective date before comparing traffic across a change.

There are three decisions to track. The robots.txt file expresses where automated clients are invited to go. A Cloudflare rule can enforce a policy in the HTTP request path. The origin application may restrict access on its own. A team can configure all three, so an Allow setting in the Crawlers view explains only one of the decisions leading to the response. Cloudflare explains the crawler actions and robots enforcement options.

Cloudflare places Pay Per Crawl after WAF custom rules. If WAF denies a request first, that request cannot arrive at payment handling on the same attempt. Depending on which rule made the decision, the rejection may be visible in security events even when it is absent from AI Crawl Control analytics. Start with the actual response and its timestamp when investigating a conflict. See the WAF processing order.

Choose Allow, Block, or Charge per crawler

Choose the policy by the work you want an agent to do. For a public documentation site, search discovery may be useful even if the team restricts collection for model training. OpenAI documents distinct roles for OAI-SearchBot and GPTBot. Anthropic distinguishes Claude-SearchBot, ClaudeBot and Claude-User. Search indexing, training collection and a fetch requested by a user can each deserve a different decision. Check the vendor descriptions before treating a company name as a single crawler. Read the OpenAI reference and the Anthropic crawler reference.

ActionUse it whenWhat to verify
AllowYou want that crawler to reach eligible public pages.Check the effective robots rules and whether WAF or the origin still stops the request.
BlockThe crawler’s access falls outside your publishing policy.Check an actual crawler request and confirm where the denial was recorded.
ChargeYour zone has Pay Per Crawl and you have selected a crawler for automated charging.Check for a price offer or a charge header on a successful delivery. Reconcile with billing records.

Cloudflare documents Pay Per Crawl as a private beta in its crawler management guide. Check whether Charge is available in your zone before designing a workflow around it. The product documentation describes a price set at the zone level and a crawler selection. Scope matters if a zone includes both freely distributed documentation and material with separate licensing terms. Check that your intended policy fits the boundaries your configuration actually supports. See Cloudflare’s Pay Per Crawl overview.

Keep the decisions in a small table with columns for hostname, bot, purpose, desired access, and owner. For a rollout, pick one crawler and one representative document first. A later change to the global bot policy can otherwise affect several agents at once, making it hard to establish which decision caused a change in requests.

Response envelopes and a receipt near a gateway
Check which response offers a price and which reports a charge.

Tell a custom 402 block from Pay Per Crawl

HTTP 402 can represent two different configurations. On paid plans, AI Crawl Control can return 402 as a custom WAF block response, with a message about how to request a license. That is useful for communicating terms. In the Pay Per Crawl flow, a price offer includes crawler-price. A successful paid delivery returns HTTP 200 with crawler-charged, whose value describes the amount reported for that request. Check the documented crawler exchange for the header semantics.

A plain 200 only shows a successful HTTP exchange. It could be a page, an interstitial, or a response generated elsewhere in the stack. If you are investigating paid delivery, look for the charge header on the same response and reconcile it with the account’s delivery or billing data. If the system copied part of the response into a ticket, an omitted header is also possible. Preserve the complete relevant header set from your trusted export before interpreting the absence of an offer or charge.

The following fixture uses seven synthetic responses. The script needs only Python and a local JSON file. It reads response status and headers from standard input. It can help triage an export, and it never sends a request or submits payment information.

import json
import sys


def classify(status, headers):
    headers = {name.lower(): value for name, value in headers.items()}
    if status == 402:
        return 'price offered' if headers.get('crawler-price') else '402 without price'
    if status == 403:
        return 'forbidden'
    if status == 200 and headers.get('crawler-charged'):
        return 'charge reported'
    if 200 <= status < 300:
        return 'success without charge header'
    if 300 <= status < 400:
        return 'inspect redirect'
    return 'inspect unexpected status'


for case in json.load(sys.stdin):
    result = classify(case['status'], case['headers'])
    print(f"{case['name']}: {result}")
python3 classify-response.py < response-cases.json
Denied request: forbidden
Custom licensing block: 402 without price
Price offer: price offered
Successful paid delivery: charge reported
Successful ordinary response: success without charge header
Redirect: inspect redirect
Unavailable origin: inspect unexpected status

The two 402 rows take different branches. The price offer includes a header, while the custom licensing example has no price header. The input uses mixed capitalization to exercise HTTP header name normalization. The labels describe what the recorded response contains. Use dashboard events to establish which Cloudflare or application rule produced it. A 403 with no other context cannot identify that rule on its own.

Verify which layer served the response

Pick a public page with a stable URL and a neighboring path that has a known different policy. Save the pre-change response, the crawler’s reported role, and the active robots.txt. Check rules in processing order. If you see a redirect, open the destination’s policy and inspect the final response. A redirect from the apex domain to a documentation hostname can cross into a different rule set. The redirect chain checker and HTTP Compare help with that route-level check.

Use verified event evidence when you need to know whether a specific crawler could access the page. Cloudflare documents User-Agent-based matching for AI Crawl Control on the free plan. A locally generated HTTP request can check what your endpoint returns for an ordinary client. It does not exercise the same identity checks as a verified request from a crawler. For an investigation, record which identity evidence you relied on. For OpenAI’s crawler ranges, see the GPTBot IP verification guide.

If the action says Allow but the crawler still sees a denial, look for the earlier security event before changing the AI Crawl Control setting. If a security change added an overlapping rule, compare affected paths and timestamps with the current crawler rule. Keep security checks scoped to their purposes. An allow decision for public articles should leave authorization for private application routes intact.

When Cloudflare manages robots.txt, review the file actually served on each affected hostname. The managed content can add directives. Compare the file before and after the change with the robots.txt checker or the AI Readiness tool. Check the public page separately because a reachable robots file says little about the status or body returned for an article. The Cloudflare Directives documentation explains why historical requests can appear as violations against current rules.

Read operational metrics and billing separately

Use the status breakdown over the same hostname and time window before and after a change. Inspect which paths account for the increase in denials or requests for payment. The Cloudflare metrics guide defines allowed requests by successful HTTP status. This number alone cannot tell you whether the origin delivered the intended article or whether it appeared in an answer. Collect a response sample alongside the chart when the distinction matters.

For a publisher considering Charge, keep a separate record of offers, paid deliveries, and amounts reconciled to billing. An increase in 402 responses may be more offers or more custom denials. Compare examples and check the action change history before attaching a revenue interpretation. A decline in requests can also reflect a crawler’s own schedule. If traffic is sparse, widen the observation window and report raw counts with any percentage.

How we made this

We checked Cloudflare’s crawler management, WAF order and payment protocol documentation. We ran the classifier locally on seven synthetic response cases and checked the result for each. The fixture models response interpretation. It does not include traffic from a Cloudflare zone, actual payment events or a live test of crawler access.

Frequently asked questions

Does a custom HTTP 402 charge a crawler automatically?

A custom 402 is a configurable block response. Use the Pay Per Crawl price and charge headers, together with your account records, when checking an automated payment flow.

Can I restrict GPTBot and keep ChatGPT search access?

OpenAI documents independent controls for GPTBot and OAI-SearchBot. Review the effective robots policy and edge rules for each agent. Access enables retrieval where the service chooses to crawl. Search inclusion is a separate outcome.

Why does a crawler still get blocked after I choose Allow?

An earlier WAF rule or another access control can still deny the request. Use the exact request time, hostname and path to check security events alongside the crawler dashboard.

Sources

Check your website right now

Audit your site's SEO →
More articles: SEO
SEO
robots.txt Guide: Syntax, Rules, Testing and Ready-Made Files
16.03.2026 · 1 191 views
SEO
Sitemap XML: Structure, Limits, Generation and Validation
16.03.2026 · 1 130 views
SEO
Open Graph Tags: Control Link Previews in Telegram and X
21.07.2026 · 954 views
SEO
Website Migration Checklist: Avoid SEO and Downtime Pitfalls
16.03.2026 · 840 views