How to Block AI Crawlers in 2026: robots.txt Rules That Work
How to block AI crawlers in 2026 with robots.txt: user agents for GPTBot, ClaudeBot and more, the new shared AI training token, Cloudflare and SEO risks.
The fastest way to block AI crawlers is still a few lines in your site's robots.txt file: name each AI company's training bot (GPTBot, ClaudeBot, Google-Extended, Applebot-Extended, CCBot, meta-externalagent and so on) and give it Disallow: /. That tells the big, well-behaved AI companies not to use your pages for model training, and it doesn't touch your Google or Bing search rankings.
There's a newer option coming too. On October 30, 2026, Google, Microsoft and OpenAI published posts backing a shared robots.txt signal, __usage_ai-training, and an Anthropic engineer submitted the matching IETF draft the same day. It lets you say "no AI training" once instead of chasing every bot name. It isn't fully live yet, though, so for now you should use both: the shared token plus the bot-by-bot rules.
The hard part isn't the syntax. It's deciding which bots to block, because some AI crawlers feed training while others decide whether your site shows up and gets cited in ChatGPT search, Perplexity or Claude. Block the wrong one and you lose visibility you might actually want. This guide gives you copy-paste rules for each case, plus how Cloudflare's tools fit in and how to check your setup works.
Key takeaways
- Most AI companies split their bots: one for training (GPTBot, ClaudeBot), one for AI search (OAI-SearchBot, Claude-SearchBot, PerplexityBot) and one for user-triggered fetches (ChatGPT-User, Claude-User, Perplexity-User).
- Blocking training bots does not affect your Google or Bing rankings. Blocking AI search bots can remove you from answers in ChatGPT search, Claude and Perplexity.
- The shared
__usage_ai-trainingtoken is backed by Google, Microsoft, OpenAI and Anthropic, but Google and Microsoft won't honor it until 2027. Keep your per-bot rules for now. - robots.txt is a request, not a lock. Bad actors ignore it, so use Cloudflare's AI Crawl Control or firewall rules if you need real enforcement.
AI crawler user agents you can block in 2026
Here are the user-agent tokens published by each vendor, checked against their own documentation in late November 2026. The "Purpose" column is the part that matters for your decision.
| Company | User agent | Purpose | Respects robots.txt? |
|---|---|---|---|
| OpenAI | GPTBot | Model training | Yes |
| OpenAI | OAI-SearchBot | ChatGPT search results | Yes |
| OpenAI | ChatGPT-User | Fetches a page when a user asks | Not always (user-initiated) |
| Anthropic | ClaudeBot | Model training | Yes |
| Anthropic | Claude-SearchBot | Claude search quality and indexing | Yes |
| Anthropic | Claude-User | Fetches a page when a user asks | Yes, per Anthropic |
| Google-Extended | Gemini training and grounding (no separate crawler) | Yes | |
| Apple | Applebot-Extended | Apple AI model training (no separate crawler) | Yes |
| Perplexity | PerplexityBot | Perplexity search results, not training | Yes |
| Perplexity | Perplexity-User | Fetches a page when a user asks | Generally no |
| Meta | meta-externalagent | AI training and product indexing | Yes |
| Common Crawl | CCBot | Open web archive widely used for AI training | Yes |
Two of these deserve a closer look. Google-Extended and Applebot-Extended aren't crawlers at all. Google and Apple keep crawling with Googlebot and Applebot, and the "Extended" token only controls whether that data can be used for AI. Google says Google-Extended doesn't affect inclusion or ranking in Google Search, and Apple says blocking Applebot-Extended keeps your pages in Spotlight, Siri and Safari results. So those two blocks are low-risk for SEO. Note that Google-Extended also covers grounding in Gemini Apps, so blocking it can keep you out of Gemini answers that would otherwise link to you.
How to block AI crawlers with robots.txt (step by step)
Your robots.txt file lives at the root of your domain, like https://example.com/robots.txt. Each subdomain needs its own file. On WordPress you can edit it with an SEO plugin like Yoast or Rank Math, or upload a plain text file over FTP or your host's file manager. On Shopify, Squarespace and Wix, look for a robots.txt editor in the SEO settings.
Option 1: Block AI training, keep AI search visibility
This is what we'd recommend for most business sites and blogs. You refuse model training but still let ChatGPT search, Claude and Perplexity find and cite you, which can send real visitors.
# Shared AI training opt-out (rolling out through 2027)
User-agent: __usage_ai-training
Disallow: /
# Training bots
User-agent: GPTBot
Disallow: /
User-agent: ClaudeBot
Disallow: /
User-agent: Google-Extended
Disallow: /
User-agent: Applebot-Extended
Disallow: /
User-agent: CCBot
Disallow: /
User-agent: meta-externalagent
Disallow: /
# Everyone else, including search engines and AI search bots
User-agent: *
Allow: /
Keep any existing rules you already have under User-agent: *, like blocking /wp-admin/, and keep your Sitemap: line.
Option 2: Block AI training and AI search
If you don't want your content summarized in AI answers at all, add the search bots too. Expect fewer citations and referral visits from AI tools. OpenAI says sites that block OAI-SearchBot won't appear in ChatGPT search answers.
User-agent: __usage_ai-training
Disallow: /
User-agent: GPTBot
Disallow: /
User-agent: OAI-SearchBot
Disallow: /
User-agent: ClaudeBot
Disallow: /
User-agent: Claude-SearchBot
Disallow: /
User-agent: Google-Extended
Disallow: /
User-agent: Applebot-Extended
Disallow: /
User-agent: PerplexityBot
Disallow: /
User-agent: CCBot
Disallow: /
User-agent: meta-externalagent
Disallow: /
User-agent: *
Allow: /
Option 3: Block AI training on part of your site
Maybe you're fine with AI reading your press releases but not your paid guides. Use paths, and remember that the most specific (longest) matching rule wins under the robots.txt standard, RFC 9309.
User-agent: __usage_ai-training
Disallow: /
Allow: /press/
User-agent: GPTBot
Disallow: /guides/
Disallow: /members/
User-agent: ClaudeBot
Disallow: /guides/
Disallow: /members/
A common mistake: putting the AI bots on the same line as other rules or relying only on User-agent: *. Under the shared token's draft, a wildcard group doesn't count as an AI training preference at all, and Anthropic says a rule that names ClaudeBot overrides any general setting. Name the bots explicitly.
The new shared AI training token, explained
The __usage_ai-training token is used in the User-agent line, but it isn't a crawler. It describes how content may be used, not whether it can be fetched. The idea comes from the IETF's AI Preferences (AIPREF) working group, and the specific robots.txt proposal is an individual Internet-Draft by Anthropic's Kevin Kelley, so it has no formal IETF standing yet.
Here's where each company stood as of early December 2026:
- Anthropic says it has already started implementing support, and its help page says it will honor a machine-readable "no AI training" signal alongside ClaudeBot rules.
- OpenAI says it will support the signal "in the coming months" and publish implementation details later. Its bots page doesn't list the token yet, so keep your GPTBot rule.
- Google says it aims to support it in early 2027. If you use the shared token and don't mention Google-Extended, Google plans to treat that as a Google-Extended disallow, which also affects Gemini grounding. To opt out of training elsewhere but stay eligible for Gemini answers, add an explicit
User-agent: Google-Extendedgroup withAllow: /. - Microsoft will start honoring AI training and AI grounding preferences on February 1, 2027. Bing also adds page-level controls such as
<meta name="Bingbot" content="ai-training:disallow">and a matching X-Robots-Tag header.
Two limits to keep in mind. The opt-out isn't retroactive, so content already collected and used in trained models stays there. And private licensing deals can override what your robots.txt says.
robots.txt is a polite sign on the door. The big AI companies read it. The scrapers you're most worried about often don't.
Using Cloudflare to block AI crawlers
If your site runs through Cloudflare, you get more than polite requests. Cloudflare's AI Crawl Control is available on all plans and lets you allow or block individual AI crawlers, see which bots hit your pages and how often, and track which crawlers ignore your robots.txt. Blocking there happens at the network edge, so a bot that ignores robots.txt still gets turned away.
Cloudflare also offers a managed robots.txt, also on all plans. It prepends Disallow rules for known AI training bots (Amazonbot, Applebot-Extended, Bytespider, CCBot, ClaudeBot, Google-Extended, GPTBot and meta-externalagent) to your existing file, plus a Content Signals line like Content-signal: search=yes, ai-train=no. If you use it, don't be surprised when your live robots.txt looks different from the one on your server.
Defaults changed this year as well. According to The Next Web's report on Cloudflare's July 2026 announcement, from September 15, 2026, new sites and free-plan users who hadn't changed their settings have AI training crawlers and AI agents blocked by default on pages that carry ads, while search indexing stays on. Cloudflare's Pay Per Crawl, which lets you charge bots for access, is still a private beta, and the company is moving toward a "Pay Per Use" model that pays publishers when their content shapes an AI answer. If you're on Cloudflare, open the AI Crawl Control page in your dashboard and check what's currently set, because you may already be blocking more than you think.
SEO trade-offs: what blocking AI crawlers costs you
Blocking training bots is close to free from an SEO view. Googlebot and Bingbot keep crawling, Google-Extended and Applebot-Extended don't affect search ranking, and Google's blog says sites keep company-specific control alongside the new shared signal. The real cost is indirect: if models never see your brand, they may mention you less in generated answers.
Blocking AI search bots costs more. ChatGPT search, Claude, Perplexity and Gemini all link to sources, and for some sites those links are a growing traffic channel. Our view: block training, allow search, then watch your analytics for a few months. If AI referrals stay tiny and you'd rather keep your content out of answers, tighten up later. Our best SEO tools guide covers tools that now track AI search visibility, and our AI browsers comparison shows why user-triggered fetchers like ChatGPT-User are hard to block without hurting real visitors.
One more thing: don't try to block Googlebot to stop AI Overviews. That removes you from Google Search entirely, which is a much bigger loss than whatever you're protecting.
How to check your AI crawler blocks are working
- Load the live file. Visit
yourdomain.com/robots.txtin a private browser window. If you use Cloudflare's managed robots.txt or a caching plugin, this is the version bots actually see. - Use Google Search Console. Its robots.txt report shows the version Google fetched and flags parsing errors. A typo can break a whole group.
- Check your server logs. Search access logs for GPTBot, ClaudeBot, CCBot and the others. After a block, well-behaved bots should only request
/robots.txt. OpenAI and Perplexity say changes can take about 24 hours, and Meta says its crawlers may cache robots.txt for up to a day. - Verify the bot is real. Common Crawl warns that some scrapers pretend to be CCBot. OpenAI, Anthropic and Perplexity publish IP ranges, so compare suspicious hits against them before blaming a vendor.
- Use Cloudflare analytics if you have it. AI Crawl Control shows which crawlers follow your rules and which don't, and you can turn violators into hard blocks.
Outside the US, the rules on AI training are moving too. The EU AI Act expects general-purpose AI providers to respect machine-readable opt-outs under EU copyright law, which makes a clear robots.txt more meaningful for EU publishers. For anything involving licensing or legal claims over your content, talk to a qualified lawyer.
FAQ
Does blocking GPTBot hurt my Google rankings?
No. GPTBot is OpenAI's training crawler and has nothing to do with Google Search. Blocking it, ClaudeBot, CCBot or Google-Extended won't change how Googlebot crawls or ranks your site.
What is the __usage_ai-training token?
It's a shared robots.txt signal that tells participating AI companies not to use your content for training generative models. Google, Microsoft, OpenAI and Anthropic said in October 2026 they would honor it, with Anthropic already implementing it and Google and Microsoft planning support in early 2027.
Can I block ChatGPT from reading my website?
You can block GPTBot (training) and OAI-SearchBot (ChatGPT search) in robots.txt. ChatGPT-User fetches pages when a person asks about them, and OpenAI says robots.txt may not apply to it, so a firewall rule is the only reliable way to stop it.
Do AI crawlers have to obey robots.txt?
Not legally in the US. robots.txt is a voluntary standard. OpenAI, Anthropic, Google, Apple, Meta, Perplexity and Common Crawl say they honor it for their crawlers, but unknown scrapers often ignore it, which is why network-level blocking exists.
Will blocking AI crawlers remove my content from existing AI models?
No. Blocks only apply to future crawling and use. Content already collected stays in existing datasets and models, and the new shared token is explicitly not retroactive.
Should a small business block AI crawlers?
For most small businesses we'd block training bots and allow AI search bots, since being cited in ChatGPT or Perplexity can bring customers. Sites that sell original content, like publishers and course creators, have stronger reasons to block more.
Want more practical guides? Browse AI for business, our SEO tools coverage, or the website builders section. If you'd rather have someone set up robots.txt, Cloudflare and server rules for you, our team offers IT services and server setup help.
Sources: OpenAI crawlers, Anthropic crawler help, Google Search Central blog, Google common crawlers, PPC Land, Apple Applebot, Perplexity crawlers, Meta web crawlers, Common Crawl CCBot, Cloudflare AI Crawl Control, Cloudflare managed robots.txt, The Next Web