Book a Free Consultation

AI Crawlers and robots.txt: What to Allow and What to Block

TL;DR (Too Long; Didn't Read)

AI companies run two kinds of crawler: search crawlers that decide whether ChatGPT, Claude and Perplexity can show your pages, and training crawlers that collect text for future models. Most South African businesses should allow both. Never block the search crawlers, check Cloudflare as well as robots.txt, and remember that a bot you name in its own group ignores your general rules.

Small robot figures at a website's gates, some walking through an open gate and others waiting at a closed one

Which AI Crawlers Visit Your Site?

The AI crawlers that matter for a South African business come from OpenAI, Anthropic, Perplexity, Google, Microsoft, Apple, Meta and Common Crawl. Each company names its crawlers in the user-agent string, and most run separate bots for search, for user requests and for model training. robots.txt lets you treat each one differently.

Company User agent What it does If you block it
OpenAIOAI-SearchBotBuilds the index behind ChatGPT searchYour pages stop appearing as ChatGPT search results
ChatGPT-UserFetches a page when a ChatGPT user asks it toChatGPT cannot open your page for that user
GPTBotCollects text to train future modelsYour content stays out of future training data
AnthropicClaude-SearchBotIndexes pages for Claude's search answersFewer of your pages show up in Claude's search answers
Claude-UserFetches a page when a Claude user asks it toClaude cannot open your page for that user
ClaudeBotCollects text for model trainingYour content stays out of future training data
PerplexityPerplexityBotBuilds Perplexity's search indexYour pages stop appearing as Perplexity sources
Perplexity-UserFetches pages for a user's questionPerplexity says this agent generally ignores robots.txt, because a person made the request
GoogleGooglebotCrawls for Google Search, including AI Overviews and AI ModeYou disappear from Google Search completely
Google-ExtendedA control token, not a separate crawler. Covers Gemini model training and groundingNo effect on Google Search or AI Overviews
MicrosoftBingbotCrawls for Bing, which Copilot draws onYou drop out of Bing and Copilot answers
AppleApplebot-ExtendedA control token for Apple's AI model trainingApplebot still crawls for Siri and Spotlight
MetaMeta-ExternalAgentCollects text for Meta's AI modelsYour content stays out of Meta's training data
Common CrawlCCBotBuilds a free public web archive that many AI labs train onYour pages leave future Common Crawl snapshots

Crawler names change. Anthropic's older user agents, Claude-Web and anthropic-ai, still turn up in robots.txt templates, but Anthropic's current documentation lists ClaudeBot, Claude-User and Claude-SearchBot. Check each company's crawler page before you copy a list from a blog post, including this one.

Search Crawlers vs Training Crawlers: The One Decision That Matters

Search crawlers decide whether an AI assistant can find and cite your page today. Training crawlers decide whether your text helps train models released months from now. Blocking a search crawler costs you visibility straight away. Blocking a training crawler costs you little in the short term, and it protects you only if you sell the content itself.

OpenAI's documentation states that GPTBot and OAI-SearchBot are controlled separately, so you can stay in ChatGPT search while keeping your content out of training. Anthropic splits ClaudeBot and Claude-SearchBot the same way. That split is the reason robots.txt became a business decision rather than a technical one.

Google works differently, and the difference trips people up. AI Overviews and AI Mode are part of Google Search, and they use pages that Googlebot crawls. Blocking Google-Extended keeps your content out of Gemini training and grounding, but it does not take you out of AI Overviews. The only robots.txt way to leave AI Overviews is to block Googlebot, which removes you from Google Search altogether. If you want to limit what Google quotes, use the nosnippet or max-snippet meta tags on the page instead.

For the bigger picture of how these engines choose sources once they can read your site, see our AI search optimisation hub.

The robots.txt Rule That Catches Almost Everyone

A crawler obeys only the most specific group that names it. If your robots.txt has a User-agent: GPTBot group and a User-agent: * group, GPTBot reads its own group and ignores every rule under the star. Any Disallow lines you meant for all bots no longer apply to the bots you named.

We found this on our own site while writing this guide. Our robots.txt gave GPTBot, ClaudeBot, PerplexityBot and six other AI bots their own groups with a single Allow: / line, so they could ignore the Disallow rules for our admin and temporary folders. The general group blocked those folders for everyone else. Nothing sensitive sits there, but the file said something different from what we meant.

The fix is to list the user agents together in one group and repeat the shared rules under them. The robots.txt standard (RFC 9309) allows several User-agent lines to share one set of rules:

User-agent: OAI-SearchBot
User-agent: ChatGPT-User
User-agent: GPTBot
User-agent: Claude-SearchBot
User-agent: ClaudeBot
User-agent: PerplexityBot
Disallow: /admin/
Disallow: /tmp/

User-agent: *
Disallow: /admin/
Disallow: /tmp/

Two more details are worth knowing. You do not need Allow: / at all, because anything not disallowed is allowed. Some simpler parsers also read the first matching line instead of the most specific one, so an Allow: / above your Disallow lines can cancel them out in those tools. And if you give a bot no group of its own, it follows the star group, which is often all you need.

robots.txt Templates for AI Crawlers

Most business sites need one of two set-ups. Template A lets every AI crawler in and keeps one shared set of rules. Template B keeps you visible in AI search but blocks the main training crawlers. Both keep Googlebot and Bingbot unchanged. Replace the WordPress paths and the sitemap address with your own.

Template A: allow AI search and training (what we use and recommend for most businesses)

User-agent: *
Disallow: /wp-admin/
Allow: /wp-admin/admin-ajax.php

Sitemap: https://www.example.co.za/sitemap.xml

That is the whole file. Every AI crawler without its own group follows these rules. You only need named groups if you want different rules for different bots.

Template B: stay in AI search, block AI training

User-agent: GPTBot
User-agent: ClaudeBot
User-agent: Google-Extended
User-agent: Applebot-Extended
User-agent: Meta-ExternalAgent
User-agent: CCBot
Disallow: /

User-agent: *
Disallow: /wp-admin/
Allow: /wp-admin/admin-ajax.php

Sitemap: https://www.example.co.za/sitemap.xml

OAI-SearchBot, ChatGPT-User, Claude-SearchBot, Claude-User and PerplexityBot are not named in Template B, so they follow the star group and can still read your site. Robots.txt is a request, not a lock: the large AI companies say they honour it, but nothing forces a crawler to comply.

Changes are not instant. Google can cache your robots.txt for up to 24 hours, and the AI companies need time to recrawl before their results change.

Cloudflare and Firewalls Can Block AI Bots Without Telling You

A perfect robots.txt means nothing if your firewall turns the crawler away first. Since July 2025, Cloudflare has blocked AI crawlers by default on newly added domains, and its bot settings can block AI bots across older sites too. Many South African sites run behind Cloudflare, often set up by a developer who has since moved on.

Check three places in the Cloudflare dashboard: the AI bot blocking setting under Security, the AI Crawl Control section, which shows which AI crawlers visit and lets you allow or block each one, and whether Cloudflare is managing your robots.txt for you. Its managed robots.txt option can add Disallow rules for AI training crawlers that you never wrote. If it is on, the robots.txt your visitors see is not the file on your server.

Hosting firewalls and WordPress security plugins can do the same thing with less visibility. If an AI assistant cannot read a page that loads fine in your browser, look at the firewall before you touch robots.txt.

How to Check Which AI Bots Reach Your Site

Start by opening yourdomain.co.za/robots.txt in a browser to see the live file. Then check your Cloudflare AI Crawl Control report or your server access logs for the user agents in the table above. A bot that never appears in your logs is either blocked upstream or has not found your site yet.

  1. Read the live file. Confirm it matches what you think you published, especially if Cloudflare or an SEO plugin edits it.
  2. Check Google Search Console. The robots.txt report under Settings shows the version Google fetched and any errors it found.
  3. Search your logs. Look for OAI-SearchBot, ChatGPT-User, Claude-SearchBot, ClaudeBot, PerplexityBot and GPTBot, and check the status codes. A 403 or 503 means something blocked the request.
  4. Watch for fakes. Anyone can put "GPTBot" in a user-agent string. OpenAI, Google and others publish the IP ranges their crawlers use, and Cloudflare marks verified bots, so check the IP before you trust the name.
  5. Ask the assistants. Paste one of your URLs into ChatGPT, Claude and Perplexity and ask for a summary. If one refuses or describes the wrong page, check the matching user agent.

Our AI visibility audit guide covers what to do once the bots can read your site, and our ChatGPT search guide covers getting named in ChatGPT specifically.

Not sure what your robots.txt and Cloudflare are blocking?

Our AI visibility audit checks crawler access, robots.txt, firewall rules and schema, and shows how ChatGPT, Gemini and Perplexity describe your business today.

See the AI Visibility Audit

What We Recommend for South African Businesses

Allow both AI search and AI training crawlers unless you sell your content itself. A plumber, law firm or guest house loses nothing when a model learns what it does and where it trades, and gains a better chance of being named. Publishers, course creators and research firms have a real reason to block training crawlers.

The one setting we would never use for a business that wants customers is a blanket block on AI search crawlers. Blocking OAI-SearchBot, Claude-SearchBot or PerplexityBot hides you from people who are asking those tools for a supplier right now, and a competitor gets named instead.

Once access is sorted, the work that earns citations is on the page: schema markup, pages that answer real questions (see our AI citability guide), and consistent business details everywhere. An llms.txt file is optional housekeeping on top of that.

Frequently Asked Questions

Should I block GPTBot?

Only if you want to keep your content out of OpenAI's future training data and you sell that content. Blocking GPTBot does not remove you from ChatGPT search, because OpenAI uses a separate crawler, OAI-SearchBot, for search results. Most service businesses gain more from allowing it.

Does blocking Google-Extended remove my site from AI Overviews?

No. Google-Extended only controls whether your content is used for Gemini model training and grounding. AI Overviews and AI Mode are part of Google Search and use pages crawled by Googlebot. Blocking Googlebot would remove you from AI Overviews, but also from Google Search entirely.

What is the difference between OAI-SearchBot and GPTBot?

OAI-SearchBot crawls pages so they can appear in ChatGPT search results. GPTBot collects text to train OpenAI's future models. OpenAI controls them separately, so you can allow OAI-SearchBot and block GPTBot to stay visible in ChatGPT search without contributing to training.

Why can't ChatGPT read my website?

The most common causes are a robots.txt rule that blocks OAI-SearchBot or ChatGPT-User, a Cloudflare or hosting firewall setting that blocks AI bots, or a page that only loads its content with JavaScript (our JavaScript SEO guide shows how to test for that). Check the live robots.txt, then your Cloudflare AI bot settings, then your server logs for 403 errors.

Do AI crawlers have to obey robots.txt?

No. robots.txt is a request, not a technical barrier. OpenAI, Anthropic, Google, Apple and Common Crawl say their crawlers honour it, but agents that act for a user, such as Perplexity-User, may not. To enforce a block, use your firewall or Cloudflare's bot controls.