---
title: "Cloudflare Pay Per Crawl & AI Agent Blocking (2026 Guide)"
description: "How Cloudflare's pay per crawl works with HTTP 402 and Web Bot Auth, the September 15, 2026 defaults that block training and agent crawlers on ad-supported pages, the Pay Per Use shift, and how AI agents should handle 402s and blocks."
category: "guides"
url: https://keirolabs.cloud/blog/cloudflare-pay-per-crawl-ai-agents
published: 2026-11-24
updated: 2026-11-24
---

# Cloudflare pay per crawl and AI agent blocking: what changed in 2026 and how agents should handle it

## The 60-second version

**Cloudflare lets websites allow, charge or block AI crawlers and agents, and Cloudflare announced that from September 15, 2026, new domains block AI training crawlers and AI agents by default on pages that show ads.** Search crawlers stay allowed. Cloudflare says more than 20% of web domains sit behind it, so this changes what your agent gets back when it fetches pages directly.

| What | Detail |
|---|---|
| **Pay per crawl** | Sites set a price; crawlers get HTTP `402 Payment Required` with a `crawler-price` header, and can pay to proceed |
| **Who can pay** | Crawlers registered with Cloudflare that sign requests with Web Bot Auth |
| **Status** | Private beta, with Cloudflare as merchant of record |
| **2026 rename** | Press reports describe a move to "Pay Per Use", paying publishers when content contributes to an AI answer, not just when it's fetched |
| **New defaults (announced for Sept 15, 2026)** | New domains: Training and Agent crawlers blocked on pages that display ads; Search allowed |

Sources: Cloudflare's [pay per crawl announcement](https://blog.cloudflare.com/introducing-pay-per-crawl/), its [July 2026 post on new defaults](https://blog.cloudflare.com/content-independence-day-ai-options/), its [AI Crawl Control docs](https://developers.cloudflare.com/ai-crawl-control/), and coverage in The Register and The Next Web.

## How does Cloudflare pay per crawl work?

**It uses HTTP status 402 Payment Required, a status code that was reserved for decades and rarely used.** Per Cloudflare's announcement:

1. **A crawler requests a page** on a site that charges.
2. **Without payment intent, it gets `402`** with a header such as `crawler-price: USD 0.01`.
3. **The crawler retries** with `crawler-exact-price` set to that price, or sends `crawler-max-price` up front (one or the other, not both).
4. **If the price is accepted,** it gets `200` with the content and a `crawler-charged` header confirming the amount.

**Identity is required.** Crawlers must register with Cloudflare's Web Bot Auth, create an Ed25519 key pair, and sign requests using HTTP Message Signatures (RFC 9421), sending `signature-agent`, `signature-input` and `signature` headers. Crawlers that don't sign their requests can't pay, so on a charging site they don't get the content.

**Site owners choose per crawler:** allow, charge or block. WAF or bot-management blocks override the charge setting.

## What changed in 2026?

- **New defaults from September 15, 2026.** In its July 2026 announcement, Cloudflare said that for new domains, Training and Agent crawlers are "blocked by default on the pages that display ads," while Search "will remain allowed." Press coverage reports the default also applies to new sites of existing customers and free-plan users who haven't changed their settings. Cloudflare's own post says "new domains onboarding", so confirm against your target sites' behavior.
- **Multi-purpose crawlers.** Cloudflare notes that crawlers used for both search and training (it names Googlebot, Applebot and BingBot) are blocked for customers who block Training.
- **From "per crawl" to "per use".** The Register and The Next Web report a rebrand to "Pay Per Use", tying payment to content that contributes to an AI answer. We couldn't confirm that name in Cloudflare's own post, so treat the details as evolving.
- **Bots are now most of the traffic.** Cloudflare's CEO, quoted by The Register: "the majority of traffic on the Internet is non-human."

## What does this mean for AI agents?

**If your agent fetches web pages itself, more fetches will fail, and they'll fail in new ways.** Expect:

- **More 403s and challenge pages** from sites that block agents, especially ad-supported sites created after September 15, 2026.
- **402 responses** from sites that charge. A naive scraper treats these as errors or, worse, parses the error body as content.
- **Different behavior by agent type.** A crawler classed as "Search" may be allowed where an "Agent" or "Training" crawler is blocked.

**Handle 402s explicitly, and never treat a block page as content:**

```python
import requests

BLOCK_MARKERS = ("cf-chl", "Just a moment...", "Attention Required")

def fetch_page(url: str) -> dict:
    r = requests.get(url, timeout=20, headers={"User-Agent": "my-agent/1.0 (+https://example.com/bot)"})
    if r.status_code == 402:
        return {"ok": False, "reason": "payment_required", "price": r.headers.get("crawler-price")}
    if r.status_code in (401, 403, 429) or any(m in r.text[:5000] for m in BLOCK_MARKERS):
        return {"ok": False, "reason": f"blocked_{r.status_code}"}
    r.raise_for_status()
    return {"ok": True, "html": r.text}
```

**When a page can't be fetched, fall back gracefully.** Answer from the search snippet if it's enough, try another result, or tell the user the source is unavailable. Don't silently answer from training data as if you'd read the page.

## Should my agent pay, or route around blocks?

**Don't route around them.** Spoofing user agents, rotating IPs to dodge an explicit block, or ignoring robots.txt goes against the site owner's choice. That's a legal and reputational risk, and an arms race you'll lose as signed bot identity spreads. The sustainable options:

- **Identify your agent honestly:** a descriptive user agent with a contact URL, and Web Bot Auth if you crawl at scale.
- **Pay where it's worth it,** if you're a registered crawler and the content matters to your product.
- **Use snippets when they're enough.** Many questions are answered by the search result snippet without fetching the page at all. In our measurements a snippet is about 65 tokens, against thousands for a page ([context engineering](/blog/context-engineering-web-search-agents)).
- **Use a search API for discovery,** and fetch only the few pages the model actually needs.
- **Respect robots.txt** and the site's stated AI preferences.

## What does it mean for publishers?

**More control, and potentially revenue, from AI traffic.** Site owners on Cloudflare can see which AI crawlers visit, allow the ones that send traffic (search), block or charge the rest (training, agents), and change it per crawler in AI Crawl Control. If you want AI assistants to cite your site, keep search crawlers allowed: blocking them removes you from AI answers that rely on search indexes.

## Checklist for agent builders

- **Treat 402 and block pages as explicit outcomes, not content.**
- **Identify your agent honestly; don't spoof or evade blocks.**
- **Prefer snippets, and fetch full pages only when needed.**
- **Fall back to other sources, and tell the user when a source is unavailable.**
- **Watch your fetch success rate:** a drop after September 2026 is expected; plan for it.

Keirolabs gives agents search results with snippets (`/search/lite`) and page content (`/search/content`, `/extract`) through one API. New accounts get up to 2,000 free credits with no card ([get a key](https://platform.keirolabs.cloud/register)).
