Skip to content

AI crawlers and robots.txt: what to allow, what to block, and why it's advisory

AI bots fall into on-demand, search and training groups. Which to allow or block in robots.txt, how WordPress serves it, and what robots.txt can't enforce.

• Rankmizer team

Most AI companies now run more than one bot, and they do different jobs. Some fetch a page because a person just asked a question about it. Some build a search index that answers are drawn from. Some collect text to train models. You can treat each group differently in robots.txt. The file is a request, though, not a lock. Well-behaved crawlers follow it, some fetchers say outright that they may not, and nothing in the protocol makes anyone comply.

Here is how the groups break down, what each vendor says about its own bots, and a sensible default policy for a WordPress site.

Four kinds of bot

1. On-demand fetchers: a person is waiting

These run when someone using an AI product asks it to read a page, or when the product decides to look something up for an answer in progress. They aren’t crawling the web on a schedule.

  • ChatGPT-User (OpenAI). OpenAI’s bot documentation says it is used when a user’s action calls for visiting a page, is not used to crawl the web automatically, and that “because these actions are initiated by a user, robots.txt rules may not apply.”
  • Claude-User (Anthropic). Anthropic’s crawler page describes it as supporting Claude users, and says blocking it prevents Claude from retrieving your content in response to user queries.
  • Perplexity-User (Perplexity). Perplexity’s bot guide says that since a user requested the fetch, it “generally ignores robots.txt rules.”
  • Google’s user-triggered fetchers, such as the one behind Gemini notebooks. Google’s list of user-triggered fetchers says these “generally ignore robots.txt rules,” for the same reason.
  • meta-externalfetcher (Meta). Meta’s crawler documentation says it fetches links on user request and may bypass robots.txt.

Blocking these is the most direct way to stop an assistant from reading your page when someone asks about it, and for several of them the block may not be honored anyway.

2. Search and indexing bots: building the index answers come from

  • OAI-SearchBot (OpenAI). OpenAI says sites opted out of it will not be shown in ChatGPT search answers, though they can still appear as navigational links.
  • Claude-SearchBot (Anthropic). Anthropic says it crawls to improve search result quality, and that disabling it may reduce your visibility in Claude’s search results.
  • PerplexityBot (Perplexity). Used to surface and link sites in Perplexity’s results. Perplexity says it is not used to crawl content for training foundation models.
  • Applebot (Apple). Apple’s Applebot page says its data powers search in Spotlight, Siri and Safari, and may also be used for Apple’s AI models unless you opt out with Applebot-Extended.

If you want to appear in these products’ answers with a link back, these are the bots to leave alone.

3. Traditional search crawlers

Googlebot and Bingbot are the classic search crawlers. Google’s documentation on AI features in Search says the robots.txt rules for Googlebot are the control for how your site is crawled for Search, and that covers AI Overviews and AI Mode. Blocking Googlebot to stay out of AI Overviews removes you from Google Search entirely. Never do that by accident.

4. Training crawlers

  • GPTBot (OpenAI). OpenAI says disallowing it indicates your content should not be used to train its foundation models.
  • ClaudeBot (Anthropic). Collects content that may contribute to model training.
  • CCBot (Common Crawl). Common Crawl’s CCBot page gives the robots.txt rule to opt out.
  • Meta-ExternalAgent (Meta). Meta says it crawls for uses such as training foundation AI models or improving products by indexing content. It can be blocked with a robots.txt Disallow, and Meta lists it apart from the fetchers it says may bypass robots.txt.

Control tokens that never visit

Two names show up in robots.txt guides but never in your logs:

  • Google-Extended. Google’s crawler overview says it has no separate HTTP user agent. It is a robots.txt token that controls whether content Google has crawled may be used to train future Gemini models and for grounding in Gemini Apps and Vertex AI. Google says it doesn’t affect inclusion in Google Search and isn’t a ranking signal.
  • Applebot-Extended. Apple says it “does not crawl webpages.” It only controls whether content Applebot already fetched may be used to train Apple’s models.

Blocking these tokens opts you out of training use for those two companies without touching their search crawlers. Google-Extended is a bigger decision than it looks: blocking it also stops your content being used for grounding in Gemini Apps and Vertex AI, which are answer surfaces, not only training.

A sensible default

There is no universally right policy. A common starting point for a site that wants to be found and cited, but doesn’t want to contribute training data:

  • Allow on-demand fetchers. These visits happen because someone asked about your page.
  • Allow search and indexing bots, and always allow Googlebot and Bingbot.
  • Decide on training bots. Blocking them is a reasonable default if you have no reason to contribute. Some publishers allow them on purpose. It’s a business decision, not a technical one.
  • Decide on Google-Extended separately. It covers Gemini training and grounding in Gemini Apps and Vertex AI, so blocking it can cost you answers there. Applebot-Extended only covers Apple’s model training.

In robots.txt, that looks something like:

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

User-agent: GPTBot
Disallow: /

User-agent: ClaudeBot
Disallow: /

User-agent: CCBot
Disallow: /

User-agent: Meta-ExternalAgent
Disallow: /

User-agent: Applebot-Extended
Disallow: /

# Google-Extended left out on purpose: blocking it also stops grounding
# in Gemini Apps and Vertex AI. Add it only if you have decided to.

Sitemap: https://example.com/sitemap_index.xml

The rule that trips people up: groups don’t add together

Under the Robots Exclusion Protocol, standardized as RFC 9309, a crawler looks for the group whose User-agent line matches its own token, case-insensitively, and follows that group. It only falls back to the User-agent: * group if no group names it.

So the moment you add a group for a bot, that bot stops reading your * rules. If your * group blocks /checkout/ and you add User-agent: OAI-SearchBot with only Allow: /, OAI-SearchBot is now allowed into /checkout/. Copy any general rules you still want into each named group.

Within a group, the most specific matching path wins. The RFC defines this as the rule with the most octets. Allow: /blog/ beats Disallow: / for URLs under /blog/.

Why robots.txt is advisory

RFC 9309 says it directly: the rules “are not a form of access authorization.” Google’s own introduction to robots.txt says the instructions can’t enforce crawler behavior and “it’s up to the crawler to obey them.”

In practice that means:

  • Reputable crawlers generally comply. OpenAI, Anthropic, Google, Apple, Meta and Perplexity document their tokens and say which bots follow the file.
  • User-triggered fetchers are a stated exception at several vendors, as quoted above.
  • Anyone can ignore it. A scraper doesn’t have to read the file, and it can call itself whatever it likes in the user agent.
  • It doesn’t remove anything. robots.txt controls crawling, not indexing. Google says it isn’t a way to keep a page out of Google. Use noindex or authentication for that.
  • Changes take time. Crawlers cache the file. Perplexity and Meta both say changes can take up to 24 hours to be reflected.

If you need actual enforcement, it has to happen at the server, your host or your CDN, by verified identity. OpenAI and Anthropic publish their crawler IP addresses, and Google and Apple document reverse-DNS checks. Anthropic notes that blocking its IPs may also stop its bots from reading your robots.txt, so an IP block can’t stand in for the opt-out.

How WordPress serves robots.txt

If there’s no physical robots.txt file in your web root, WordPress generates one on request through do_robots(). SEO plugins usually edit that virtual file through a filter or a settings screen. If someone uploaded a real file, the server returns it directly and WordPress never sees the request. Many plugins’ robots.txt settings then do nothing, because they edit the virtual file, which is a common source of confusion. (Rankmizer checks which one is live: it writes between its own markers in a physical file when one exists, and adds its rules to the virtual file when none does.)

To check what’s live, open https://yoursite.com/robots.txt in a private window, bypassing any cache. That response is what crawlers get.

Checklist

  • Googlebot and Bingbot are not blocked.
  • Each named group repeats any general rules you still want applied.
  • Applebot-Extended is set the way you want, and Google-Extended is a decision you made, knowing it also covers Gemini grounding.
  • The live file matches what your plugin settings say.
  • You aren’t relying on robots.txt to protect anything private.

Where Rankmizer fits

The Rankmizer WordPress plugin has a per-bot allow or block setting for 25 robots.txt tokens, grouped the way this post describes. Training bots are blocked by default, and answer and search bots are allowed. It only edits its own marked block in the file and leaves the rest of your rules alone. It works without a licence. Like any robots.txt tool, it can only ask: some crawlers ignore the file. See AI visibility for details.

See what AI search reads on your page

Paste your content and get the check instantly. No account, no waiting.

Check my content