How to Block AI Crawlers (and Which Ones to Leave Open)
By the AEOeye editorial team·Updated Oct 3, 2026

The short answer
Block AI crawlers by naming their robots.txt tokens in one group followed by `Disallow: /`, and block only the training bots: GPTBot, ClaudeBot, Google-Extended, Applebot-Extended and CCBot. Leave search bots such as OAI-SearchBot, Claude-SearchBot and PerplexityBot open, or you drop out of those engines' answers. robots.txt is a request, so enforce it at your CDN if you need a real block.
Most advice on this topic stops at a list of Disallow lines. The harder part is choosing which bots to name, because the wrong block costs you citations, and the right file still only asks politely. This page gives you the rules to copy, the CDN step that enforces them, and a check for what your site blocks today. It leans on AEOeye's crawler access study (October 2026, 384 sites): 64 sites (16.7%) block at least one AI training bot, but only 37 (9.6%) block an AI retrieval bot. An AI crawler is any bot that fetches pages for a model's training, search index or live answers.
How do you block AI crawlers in robots.txt?
Put the training bots you want out in one robots.txt group and end it with Disallow: /. A compliant crawler matches the group by its token and stays out of the whole site. The rules live in a plain-text file defined by RFC 9309, which says plainly that they "are not a form of access authorization".
This recipe opts out of training and leaves search and user-triggered access alone:
User-agent: GPTBot
User-agent: ClaudeBot
User-agent: Google-Extended
User-agent: Applebot-Extended
User-agent: CCBot
User-agent: meta-externalagent
Disallow: /
User-agent: *
Disallow: /api/
To protect one section instead of the whole site, give a bot its own path, for example User-agent: GPTBot then Disallow: /research/. Each token below comes from the operator's own page: OpenAI, Anthropic, Apple, Common Crawl and Meta.
Five details decide whether the file works:
- A named group replaces
*. Under RFC 9309 a crawler obeys its own group and falls back to*only when none matches. Repeat any*rules you still want. - Rules apply per host. Anthropic asks you to add them to every subdomain you want to opt out.
- Changes lag. OpenAI says its search systems need about 24 hours to adjust; Perplexity says up to 24 hours.
- Two tokens are controls, not crawlers. Google-Extended has no user-agent string, and Apple says Applebot-Extended does not crawl pages.
- Blocking looks forward. Anthropic says restricting ClaudeBot signals that a site's future materials should be excluded from training; it does not recall data already collected.
Which AI crawlers should you block, and which should you leave open?
Sort bots by job, not by company. Training bots feed model datasets, search bots build the index an engine cites from, and user-triggered fetchers load a page because someone asked. For a brand, block only the first group, if you block anything. Our directory of 22 AI user agents has every token; this table is the decision.
| Job | Examples | What the operator says blocking does | Our default for a brand |
|---|---|---|---|
| Training | GPTBot, ClaudeBot, Google-Extended, Applebot-Extended, CCBot | Content is excluded from future model training | Optional |
| Search | OAI-SearchBot, Claude-SearchBot, PerplexityBot | OpenAI: not shown in ChatGPT search answers. Anthropic: may reduce visibility. | Never block |
| User-triggered | ChatGPT-User, Claude-User, Perplexity-User | OpenAI: robots.txt may not apply. Perplexity: generally ignores it. Anthropic: Claude-User is controllable. | Leave alone |

One trap catches people who want out of Google's AI answers. Google says a page needs only to be indexed and snippet-eligible to appear in AI Overviews or AI Mode, and that Googlebot rules are the control. Blocking Google-Extended does not remove you. Snippet controls such as nosnippet and max-snippet limit what Search shows from your pages, but they shrink your normal listing too.
Should your business block AI crawlers?
If you want AI engines to name your brand, block none of their search bots. Training bots are a business decision that mostly matters to publishers with licensable archives. The real divide is who you are: 84.2% of publishers in our study block a training bot, against 6.2% of SaaS sites.
| Group | Block at least one training bot | Block at least one retrieval bot |
|---|---|---|
| SaaS (n=193) | 12 (6.2%) | 1 (0.5%) |
| E-commerce and consumer (n=90) | 9 (10%) | 4 (4.4%) |
| News publishers (n=38) | 32 (84.2%) | 27 (71.1%) |
| UGC and review sites (n=20) | 11 (55%) | 5 (25%) |
| All sites (n=384) | 64 (16.7%) | 37 (9.6%) |
None of the 43 AI-visibility vendors blocked either kind, including aeoeye.com, whose robots.txt explicitly allows GPTBot, ClaudeBot, PerplexityBot, Google-Extended and CCBot. The study counts training bots as GPTBot, ClaudeBot, Google-Extended, Applebot-Extended, CCBot, Bytespider and meta-externalagent, and retrieval bots as the search and user-triggered tokens in the table above. It counts policy, not outcomes: nothing here shows a block changed whether an engine recommends a site.
Our positions:
- SaaS, stores, local and service businesses: allow everything. Your risk is being absent, not being crawled.
- Paywalled or licensing-first publishers: block the training tokens and keep search tokens open if referrals matter. Blocking retrieval bots as well is coherent only when licensing income beats citations.
- Worried about server load: rate-limit instead. Anthropic supports
Crawl-delayfor its bots; Apple says Applebot does not.
For the GPTBot-specific argument, read why blocking GPTBot is usually a mistake.
How do you enforce a block at the CDN or firewall?
To enforce a block rather than request it, filter at your CDN. On Cloudflare, AI Crawl Control lets you allow or block each AI crawler, and blocking creates a WAF rule on your zone. Match on user agent plus the operator's published IPs, because a user-agent string alone is only a claim.
Cloudflare gives you three layers:
- Managed robots.txt. Switch on the setting that blocks training in robots.txt, found under bot traffic in Security Settings. Cloudflare's docs show it prepending Disallow rules for Amazonbot, Applebot-Extended, Bytespider, CCBot, ClaudeBot, Google-Extended, GPTBot and meta-externalagent to your own file. That is training bots only, and Cloudflare itself says compliance is voluntary.
- AI Crawl Control. Available on all plans: set Allow or Block per crawler in the Actions column. The free plan identifies crawlers by user-agent string; paid plans add deeper detection and a configurable block response (403, or 402 Payment Required).
- Custom WAF rules. Use them for path exceptions or extra user agents.

Two cautions. First, Anthropic warns that blocking by IP address may stop its bots from reading your robots.txt, so opt-outs become unreliable; we would exempt /robots.txt from any firewall block. Second, a firewall is the only thing that stops user-triggered fetchers, but it also turns away the person who asked about you.
The same layer can block bots you want. Perplexity's guide tells sites with a WAF to allow PerplexityBot and Perplexity-User by user agent and IP range. Of 375 homepages in our study, 60 (16%) blocked or challenged our declared research crawler, including 24 of 88 e-commerce sites.
How do you check what you are blocking right now?
Fetch your live robots.txt, read the group each token matches, then look in your firewall logs for refusals aimed at AI user agents. The file visitors receive is not always the copy in your repository, and a firewall can override a permissive file.
- Open
yourdomain.com/robots.txtand confirm it returns 200. Under RFC 9309, a 4xx response lets crawlers access anything, while a 5xx means they must assume complete disallow. In our study, 30 of 384 sites (7.8%) had no robots.txt at all. - Check what a CDN adds. Cloudflare's managed setting prepends its own rules, so read the final served file, not your source.
- Find the group each token hits. Search for
GPTBot,ClaudeBot,OAI-SearchBot,Claude-SearchBotandPerplexityBot, then confirm none sits inside aDisallow: /group by accident. Templates, plugins and CDN settings can add them without you noticing. - Search your CDN logs for 403, 429 and challenge responses on those user agents. Cloudflare's AI Crawl Control also lists crawlers that violate your robots.txt.
- Wait a day, then test the outcome. A clean file proves reachability, not recommendation. Our free audit shows whether ChatGPT names you for three unbranded buyer questions, and our AI robots.txt generator drafts a file that separates training from search.
Key takeaways
- Block training bots (GPTBot, ClaudeBot, Google-Extended, Applebot-Extended, CCBot) in one robots.txt group; leave search bots open.
- robots.txt is a request: RFC 9309 says its rules are not access authorization, so use CDN rules for enforcement.
- User-triggered fetchers such as ChatGPT-User and Perplexity-User may ignore robots.txt, and a firewall block turns away the person who asked.
- Google-Extended does not control AI Overviews; Google says indexing and snippet eligibility decide.
- In our 384-site study, 0.5% of SaaS sites block a retrieval bot against 71.1% of publishers.
See how AI talks about your brand
Run a free AI visibility audit in under a minute.
FAQ
How do I block AI bots from my website?+
Add the training bots' tokens to one robots.txt group, such as GPTBot, ClaudeBot, Google-Extended, Applebot-Extended and CCBot, followed by Disallow: /. For enforcement, add a CDN or firewall rule, for example Cloudflare AI Crawl Control. Keep search bots like OAI-SearchBot and PerplexityBot allowed if you want AI engines to cite you.
Does robots.txt stop AI crawlers?+
It stops crawlers that choose to comply. Anthropic says its bots honor robots.txt, and OpenAI and Perplexity document tokens for managing theirs. But OpenAI says ChatGPT-User may not follow it, and Perplexity says Perplexity-User generally ignores it. Cloudflare notes compliance is voluntary, so use firewall rules when you need enforcement.
Will blocking AI crawlers hurt my Google rankings?+
Blocking AI-specific tokens does not. Google says Google-Extended does not affect inclusion in Google Search and is not a ranking signal. Blocking Googlebot itself would remove you from search, so never put it in an AI-bot group. Only 1 of the 384 sites in our study blocks Googlebot.
Can I block AI training but still appear in AI search?+
Yes. Operators control the jobs separately. OpenAI says you can allow OAI-SearchBot to appear in ChatGPT search while disallowing GPTBot, and Anthropic gives Claude-SearchBot its own token. Only 19 of the 384 sites in our study use that split (4.9%).
Does blocking remove my content from models that already trained on it?+
No. Anthropic says restricting ClaudeBot signals that a site's future materials should be excluded from training datasets. OpenAI's wording is that disallowing GPTBot indicates content should not be used in training. Neither promises to remove what was already collected.
Sources
- 1.OpenAI — Overview of OpenAI Crawlers
- 2.Anthropic — Does Anthropic crawl data from the web, and how can site owners block the crawler?
- 3.Perplexity — Perplexity Crawlers
- 4.Google — List of Google's common crawlers
- 5.Google — AI features and your website
- 6.Cloudflare — Managed robots.txt
- 7.Cloudflare — Manage AI crawlers (AI Crawl Control)
- 8.IETF — RFC 9309: Robots Exclusion Protocol