AI Crawlers and robots.txt: GPTBot, OAI-SearchBot, ClaudeBot and More
AI crawlers are the bots AI companies send to read websites. They do three different jobs: collecting training data (GPTBot, ClaudeBot), finding sources for AI search answers (OAI-SearchBot, Claude-SearchBot, PerplexityBot), and fetching a page when a person asks about it (ChatGPT-User, Claude-User). Each has its own name in robots.txt, so you can block training and still be cited.
The mistake I see most is blocking all of them by accident, through a CDN default or a robots.txt copied from somewhere else. The site then never appears in ChatGPT or Perplexity answers, and nobody knows why.
The AI crawlers and what blocking each one does
User agent names as each company documents them. Blocking a training crawler does not affect search, and the reverse.
| Company | User agent | Purpose | If you block it |
|---|---|---|---|
| OpenAI | GPTBot | Training | Content is not used to train future OpenAI models |
| OpenAI | OAI-SearchBot | Search | Pages stop appearing as sources in ChatGPT search answers |
| OpenAI | ChatGPT-User | User request | OpenAI says robots.txt rules may not apply to it |
| Anthropic | ClaudeBot | Training | Future content is excluded from training data |
| Anthropic | Claude-SearchBot | Search | Lower visibility in Claude search answers |
| Anthropic | Claude-User | User request | Claude cannot fetch the page when a user asks |
| Perplexity | PerplexityBot | Search | Pages drop out of Perplexity answers |
| Perplexity | Perplexity-User | User request | Fetches made for a user; may not follow robots.txt |
Google-Extended | Training and Gemini grounding | No effect on Google Search, AI Overviews or AI Mode | |
| Apple | Applebot-Extended | Training | No effect on Siri and Spotlight, which use Applebot |
| Common Crawl | CCBot | Open dataset used for training | Content stays out of future Common Crawl snapshots |
Google and Bing do not have a separate crawler for their AI answers. Googlebot feeds both Google Search and AI Overviews, and Bingbot feeds both Bing and Copilot. Blocking either one removes you from search and AI answers together.
robots.txt to allow AI search but block training
This is the setup most businesses want: visible in AI answers, content not used for training. Rules for a
named bot replace the generic User-agent: * group for that bot, so each one needs its own lines.
# AI search and user requests: allowed
User-agent: OAI-SearchBot
User-agent: ChatGPT-User
User-agent: Claude-SearchBot
User-agent: Claude-User
User-agent: PerplexityBot
Allow: /
# AI training: blocked
User-agent: GPTBot
User-agent: ClaudeBot
User-agent: Google-Extended
User-agent: Applebot-Extended
User-agent: CCBot
Disallow: /
# Everyone else, including Googlebot and Bingbot
User-agent: *
Disallow: /admin/
Sitemap: https://example.com/sitemap.xml If you want training too, leave the second group out. If you want no AI use at all, block the search crawlers as well, knowing that your pages will stop being sources in those tools. Test the file with the robots.txt report in Search Console; the general rules are in the blocked by robots.txt guide.
Cloudflare and other CDNs: the block you did not set
robots.txt is only half of the access. A CDN or firewall can refuse AI crawlers before they ever read the file, and the crawler sees a 403 or a challenge page instead of your content.
- Cloudflare added a one-click "block AI bots" switch in 2024, made blocking AI crawlers the default for new domains in July 2025, and in July 2026 split the control into Search, Agent and Training, each blockable on all pages or only on pages with ads. For domains added from September 15, 2026, Training and Agent bots are blocked on pages that show ads by default.
- Multi-purpose crawlers get caught. Cloudflare notes that when you block training, crawlers that do both search and training can be blocked too, because the strictest rule wins.
- Managed robots.txt. Cloudflare can write AI rules into your robots.txt for you. The file in your code and the file crawlers receive are then different.
- Security plugins and hosts on WordPress and managed platforms have their own bot lists. Check them after any change of host or CDN.
A real case: after my personal site moved to Cloudflare, Bing stopped crawling it and the index count fell to zero, though the pages answered normally. The same kind of silent change is behind many sites that never appear in AI answers. The fix and the checks are in the Bing Webmaster Tools guide.
How to check whether AI crawlers can reach your site
- Open your live robots.txt. Load yoursite.com/robots.txt in a browser. If a CDN manages it, the live file can differ from the one in your code.
- Check the CDN or firewall. In Cloudflare, look at the AI crawler and bot settings in the dashboard, and the firewall events for the user agents above. Other CDNs and security plugins have similar switches.
- Look for the crawlers in your logs. Search the server or CDN logs for OAI-SearchBot, Claude-SearchBot and PerplexityBot. Requests answered with 200 mean they get in; 403 or challenge pages mean they are blocked.
- Decide per purpose. Allow the search and user-request crawlers if you want to be cited. Decide separately whether you allow training.
- Write the rules and wait. Update robots.txt and the CDN together. OpenAI says its search systems take about 24 hours to pick up robots.txt changes.
Testing with curl and a fake user agent does not prove much: CDNs verify the real crawlers by
their IP addresses, so a fake request can be treated differently from the real bot. The logs and the CDN
events are the evidence.
Access is step one, not the whole job
Once the crawlers get in, they still need text in the HTML (most AI crawlers do not run JavaScript), pages in the Google and Bing indexes, and content worth quoting. The full sequence is in the guide to generative engine optimization. If you would rather have it checked for you, that is what the AI visibility audit covers.
Questions about AI crawlers and robots.txt
What is the difference between GPTBot and OAI-SearchBot?
GPTBot collects content that may be used to train OpenAI models. OAI-SearchBot finds pages to show as sources in ChatGPT search. They are controlled separately: you can block GPTBot to opt out of training and still allow OAI-SearchBot so ChatGPT can cite you.
Does blocking GPTBot remove my site from ChatGPT?
No. Blocking GPTBot only affects training. To appear in ChatGPT search answers, OAI-SearchBot has to be allowed. Blocking OAI-SearchBot removes your pages as sources, though OpenAI says they can still appear as plain navigational links.
Does blocking Google-Extended remove my site from AI Overviews?
No. Google-Extended controls the use of content for Gemini training and grounding, and Google says it is not a way to manage how content appears in Search. AI Overviews and AI Mode are part of Search and are controlled by Googlebot, noindex and snippet rules such as nosnippet.
Should I block AI crawlers?
Block training crawlers if you do not want your content used to train models; it does not cost you visibility in search. Blocking search crawlers such as OAI-SearchBot, Claude-SearchBot and PerplexityBot does cost visibility: those tools can no longer cite your pages. Most businesses that want customers to find them allow search and decide on training separately.
Does robots.txt actually stop AI crawlers?
The major companies say their crawlers respect it, and blocking by robots.txt is what OpenAI, Anthropic and Google document. It is a request, not a lock: a crawler that ignores it can only be stopped at the firewall or CDN. User-requested fetchers like ChatGPT-User may not follow robots.txt at all.
Is Cloudflare blocking AI crawlers on my site?
It can be. Cloudflare has offered one-click blocking of AI bots since 2024, blocked AI crawlers by default on new domains from July 2025, and in 2026 split the controls into search, agent and training. Check the AI crawler settings in the dashboard and the firewall events; the site owner often never turned the setting on.
Not sure which bots your site lets in?
Send the site address. I check robots.txt and the CDN from the outside and tell you which AI crawlers are blocked.
- Email: calebe.development@gmail.com
- WhatsApp: +55 11 98838-5247
- Who replies: Calebe Araujo, the developer who does the work
Page updated on .