Free auditStart free
GuideCloudflare · AI crawlers

Cloudflare: block AI bots

Block AI bots in Cloudflare with Search, Agent, and Training policies, see the exact September 15, 2026 changes, and check what robots.txt does.

5 min
read
6
sources
Oct 22, 2026
updated
Scaplet Editorial Team
author
In one line

In Cloudflare, go to Security Settings > Configure AI bot policies and set Search, Agent, and Training to Block (on all pages), Block on pages with ads, or Allow. Cloudflare's docs say that starting September 15, 2026, new domains get updated defaults: Training and Agent blocked on pages with ads, Search allowed.

30-second check

Where does your site stand?

Four quick questions, then a straight answer.

1/4Have you checked your own site for this?
Summarize this page withChatGPTClaudePerplexityGoogleAI Mode
01Behavior classes, as Cloudflare's Bots concepts page defines them

The current Cloudflare AI bot controls

Cloudflare lets you block AI bots by behavior, not by a single toggle. Its changelog says all customers, including Free plan users, can manage AI crawlers this way. The Block AI Bots page lists three behaviors, each with its own setting. Each blocking option blocks verified bots classified with that behavior, plus additional unverified bots that fall under the same classification.
Class

Search

Cloudflare's description
Collects or indexes your content so it can answer questions about it later.
Class

Agent

Cloudflare's description
Automated activity acting in real time on a person's behalf to get something done, such as chat fetch bots and browser-use agents.
Class

Training

Cloudflare's description
Crawls your content to train or fine-tune a model, permanently absorbing your data into the model.
Three settings for each class
SettingEffect
Block (on all pages)Blocks across the zone
Block on pages with adsUses Cloudflare's automated detection for pages that display ads on your zone, and blocks only on those pages
Allow (do not block)No blocking applied
02How it works

Set it up

  1. 01

    Open the policies

    In the Cloudflare dashboard, select your domain, go to Security Settings, filter by Bot traffic, and select Configure AI bot policies.

  2. 02

    Choose per class

    Set Search, Agent, and Training separately. To stay visible in AI search answers while refusing training, block Training and leave Search on Allow.

  3. 03

    Save and test

    After saving, request a page with a user agent you want blocked and compare it against a normal browser request.

03Dates exactly as Cloudflare states them

The dated changes in 2026

Date

July 1, 2026

Change
Changelog post "New options to manage AI traffic"; the Block AI Bots page shows the same last-updated date
Source
Cloudflare changelog and docs
Date

Before September 15, 2026

Change
All customers can opt out of the new defaults (the changelog says "at any time before September 15")
Source
Cloudflare changelog and docs
Date

September 15, 2026

Change
New domains onboarding to Cloudflare receive updated defaults: bots classified as Training or as Agent are blocked on pages that display ads, and Search remains allowed
Source
Cloudflare docs and changelog
Date

September 15, 2026

Change
The docs heading for the legacy setting reads "Deprecating on September 15, 2026"
Source
Cloudflare docs

September 15, 2026 has passed. As of October 25, 2026, the Block AI Bots page and the changelog post both still show July 1, 2026 as their date and still use future wording ("will set", "will be blocked"), and the Bots changelog has no later post about the change. Cloudflare's robots.txt page, updated October 22, 2026, still says mixed-use crawlers are excluded from the Training edge block. So the docs do not confirm what changed on the day. Open Configure AI bot policies and read what your zone actually has set. A domain onboarded after that date may have the new defaults applied.

The legacy setting is at Security Settings > Block AI bots. Cloudflare says it blocks verified bots classified as crawling for the purpose of AI training, plus a number of unverified bots that behave similarly, but excludes mixed-purpose bots used for both Training and Search. The setting lets you set a preference for blocking mixed-purpose bots.

04Explained

robots.txt and AI Crawl Control

Cloudflare's managed robots.txt, called Bot Preference Sync, generates directives from your Search, Agent, and Training policies when Enable Bot Preference Sync is on and at least one policy is set to Block, Block on pages with ads, or, for Training, Disallow. It prepends a Content Signals Policy (search, ai-input, ai-train) and Disallow rules for named AI crawlers; the docs' example lists Amazonbot, ClaudeBot, GPTBot, and others. Cloudflare is direct about the limit: robots.txt compliance is voluntary, and the file does not prevent crawlers from accessing your content at a technical level.

For enforcement, Cloudflare points to AI Crawl Control, which it says is available on all plans and can set allow or block rules for individual crawlers. On the free plan it identifies crawlers from their user agent strings, so it detects well-known, self-identifying crawlers; Cloudflare says a paid plan adds more thorough detection. For how each crawler is documented, see GPTBot, ClaudeBot, and Google-Extended, plus robots.txt for the file itself.

05How it works

Check it in two minutes

  1. 01

    Read the live robots.txt

    Open /robots.txt on your domain. If Bot Preference Sync is on and a policy blocks anything, look for the managed directives at the top. Cloudflare says they appear within a few seconds of saving and need no cache purge.

  2. 02

    Review policies

    Re-open Configure AI bot policies and confirm each class matches your intent, especially if the domain is new.

  3. 03

    Watch for side effects

    Check that Search remains Allow if you rely on AI search referrals.

Sources · 6

Every fact, linked and dated.

Official docs first. The date is when we last opened each page.
  • cloudflare.com
  1. 01Block AI Bots | Cloudflare bot solutions docsdevelopers.cloudflare.com · checked 2026-10-25
  2. 02New options to manage AI traffic | Cloudflare changelogdevelopers.cloudflare.com · checked 2026-10-25
  3. 03robots.txt setting | Cloudflare bot solutions docsdevelopers.cloudflare.com · checked 2026-10-25
  4. 04Bots concepts: AI bots | Cloudflare bot solutions docsdevelopers.cloudflare.com · checked 2026-10-25
  5. 05Manage AI crawlers | Cloudflare AI Crawl Control docsdevelopers.cloudflare.com · checked 2026-10-25
  6. 06AI Crawl Control | Cloudflare docsdevelopers.cloudflare.com · checked 2026-10-25
Questions

Asked a lot.

4 questions people ask next, answered from the sources on this page.

01How do I block AI bots in Cloudflare?

Go to Security Settings > Configure AI bot policies and set Search, Agent, and Training each to Block (on all pages), Block on pages with ads, or Allow (do not block).

02What changes on September 15, 2026?

Cloudflare's docs say that starting September 15, 2026, new domains onboarding to Cloudflare receive updated defaults: Training and Agent bots are blocked on pages that display ads, and Search remains allowed. The docs label the legacy Block AI bots setting "Deprecating on September 15, 2026". Both pages still use future tense, so check your own zone.

03Does Cloudflare's robots.txt setting actually block AI crawlers?

The robots.txt file alone does not. Cloudflare says compliance is voluntary and the file does not prevent crawlers from accessing your content at a technical level. Its AI bot policies and AI Crawl Control are the blocking controls: the docs say setting Training to Disallow with Bot Preference Sync on also enables edge blocking for AI training crawlers, and recommend AI Crawl Control to enforce crawler-specific blocks.

04Is blocking AI bots in Cloudflare free?

Cloudflare's changelog says all customers, including Free plan users, can manage AI crawlers by behavior. AI Crawl Control is listed as available on all plans.

Free · 2 minutes

Tools point. Agencies advise. This one ships.

Run the free audit, then approve the fixes. Every change can be undone.

Free, no card60 secondsNobody will call you
  • 46 fixes shipped without a ticket Brightpipe
  • 0→7 ChatGPT citations in six weeks Paylane