Back to Blog
Abstract visualization of AI crawlers and robots.txt access control
AI crawlers
8 min read

Should You Block AI Crawlers in robots.txt?

By AEO Bob Team, Master 22 Solutions, makers of the AEO Bob plugin and free AI auditPublished

Blocking every AI crawler in robots.txt can stop AI search tools from finding and citing your pages. Most major AI companies now separate bots that collect training data from bots that power search and bots that fetch a page because a user asked. We recommend deciding on each purpose separately, rather than writing one rule that blocks everything with "AI" in its name. robots.txt is a request, not a lock, and it doesn't guarantee citations either way.

Many sites block AI crawlers with one broad rule and then wonder why AI assistants never cite them. We explain how training, search and user-initiated bots differ, and how to write a robots.txt that matches what you actually want.

Many site owners added AI crawler blocks when the first training crawlers appeared. That was a reasonable reaction at the time. The landscape has changed since then, and a rule written to keep content out of model training may now also keep it out of AI search results.

We see this as a technical foundation issue that sits underneath everything else in Answer Engine Optimization. A page can have a clear answer, good structure and accurate structured data, and still never be retrieved if the bot that would fetch it is told to stay away. As our SEO vs AEO comparison explains, both disciplines depend on pages that can be discovered and read in the first place.

What are the different kinds of AI crawlers?

AI crawlers generally fall into three groups. Knowing which group a bot belongs to tells you what you give up by blocking it.

Training crawlers

These collect public web content that may be used to train or improve AI models. OpenAI's GPTBot and Anthropic's ClaudeBot are examples. Both companies say that disallowing these bots signals that your content shouldn't be used for model training.

Search and indexing crawlers

These build the index an assistant searches when it answers with live sources. OpenAI describes OAI-SearchBot as the bot used to surface websites in ChatGPT's search features. Anthropic describes Claude-SearchBot as crawling to improve the relevance and accuracy of Claude's search responses. Both companies note that blocking these bots can reduce your visibility in their search answers.

User-initiated fetchers

These visit a page because a person asked the assistant something that needs that page. OpenAI lists ChatGPT-User and Anthropic lists Claude-User for this role. OpenAI notes that because these requests are initiated by a user, robots.txt rules may not apply to them in the same way. Anthropic says blocking Claude-User prevents its system from retrieving your content in response to a user query.

Other providers use their own names and categories. Google, for example, uses a separate product token called Google-Extended for some AI uses, and Perplexity runs its own crawler. Names, behavior and policies change, so we treat each provider's official documentation as the source of truth rather than any list copied from a blog post, including this one.

What happens when you block all of them?

When you block every AI bot, you make a single decision about three different things. You opt out of training, which may be exactly what you want. But you may also opt out of being found by AI search tools and of being fetched when a user asks about you directly.

The result can be quiet and confusing. Your pages still rank in traditional search, traffic looks normal, and nothing appears broken. Meanwhile, when a potential customer asks an AI assistant for a recommendation in your category, the assistant has no fresh copy of your page to draw on and cites someone else.

The broad rules that cause this

These are the patterns we look for first when a site isn't showing up in AI answers:

  • A wildcard block. User-agent: * followed by Disallow: / blocks every compliant crawler, including traditional search engines. It's sometimes left over from a staging site.
  • A copied blocklist. Long lists of AI user agents pasted from a forum often include search and user bots alongside training bots.
  • A plugin or CDN setting. Some security plugins, hosting panels and CDN features offer an "AI bot" toggle that may block more than you expect.
  • Firewall rules. A web application firewall can block bots before they ever read robots.txt, so your file says one thing and your server does another.

None of these are wrong in every situation. The problem is when they're in place without anyone having decided what they should block.

How do you decide which bots to allow?

Start with what you want, then write rules that match. We find it helps to answer three questions in plain language before touching the file.

  1. Do we want AI assistants to cite us in search answers? If yes, allow the search crawlers for the assistants that matter to your audience.
  2. Are we comfortable with our public content being used for model training? This is a business and values decision, not a technical one. Either answer is legitimate.
  3. Is there content that shouldn't be fetched by any bot? If so, robots.txt is the wrong tool on its own. Put that content behind authentication.

Many businesses that care about AI visibility end up allowing search and user bots while making their own choice about training bots. Others allow everything. A publisher whose business depends on licensing content may block more. We don't think there's one correct answer, only an answer that matches your goals.

An example policy

Suppose you want to appear in ChatGPT and Claude search answers but don't want your content used for training. A robots.txt section for those two providers could look like this:

User-agent: GPTBot
Disallow: /

User-agent: ClaudeBot
Disallow: /

User-agent: OAI-SearchBot
Allow: /

User-agent: Claude-SearchBot
Allow: /

User-agent: *
Allow: /

Sitemap: https://www.example.com/sitemap.xml

Treat this as an illustration, not a template to paste. Check each provider's current documentation for exact user agent names before publishing, and make sure any existing rules for traditional search engines are preserved. Also remember that a group for a named user agent replaces the wildcard group for that bot, so a specific bot doesn't inherit rules you wrote under User-agent: *.

What can robots.txt not do?

robots.txt is a public text file that asks well-behaved crawlers to follow your preferences. It's useful, but it has firm limits.

  • It isn't security. Anyone can read your robots.txt, and a crawler that ignores it can still request your pages. Private material needs a login or another access control.
  • It doesn't remove what was already collected. Blocking a training bot today signals a preference about future crawling. It doesn't change a model that has already been trained.
  • It doesn't guarantee citations. Allowing a search bot makes retrieval possible. Whether an assistant cites your page still depends on relevance, clarity and the other sources available.
  • It isn't the only access issue. A bot that's allowed can still receive an empty page if your content depends on JavaScript. We cover that in why AI tools can see a different page than your visitors.

This is why we treat crawler access as one item on a checklist rather than a switch that makes a site visible. It removes one reason an assistant might pass you over. It doesn't create a reason to choose you.

How do you check what your site currently allows?

Before changing anything, find out what your site is actually telling crawlers. This takes a few minutes and often surprises people.

Read the live file

Open yourdomain.com/robots.txt in a browser. Read the file that's actually served, not the one you think you uploaded. Platforms, plugins and CDNs can generate or modify it. Check each subdomain separately, because each one has its own robots.txt.

Look for conflicting layers

If you use a CDN or firewall, check its bot settings too. A bot that robots.txt allows can still be blocked further up the chain. If you're on WordPress, review security and SEO plugins that offer crawler controls, since more than one may be editing the same file.

Confirm in your server logs

Your access logs show which bots requested which pages and what response they got. A pattern of blocked or error responses for a search bot you meant to allow tells you something is still in the way. Several providers publish IP ranges for their bots, which helps you tell a real crawler from something using a borrowed name.

Run an audit

The free AI audit reviews how AI-ready a page is, and it's a useful starting point alongside the manual checks above. For WordPress setup details, our guides walk through configuration and scores.

After you change the file, give it time. OpenAI, for example, says its search systems can take around a day to reflect a robots.txt update. Other providers don't publish a timeline. Record the date of the change so you can compare later observations against it.

Frequently Asked Questions

Will blocking GPTBot remove my site from ChatGPT search?

Not by itself, according to OpenAI's documentation. GPTBot relates to training, while OAI-SearchBot is used for ChatGPT's search features. Each setting is independent. If you want to appear in ChatGPT search answers, check that OAI-SearchBot isn't blocked.

Should a small business allow AI training crawlers?

That depends on how you feel about your public content contributing to model training. It's a business decision rather than a technical requirement. You can block training crawlers and still allow search crawlers if AI visibility matters to you.

Does allowing AI crawlers guarantee that assistants will cite my pages?

No. Allowing a crawler makes your pages available to that system. Citations still depend on whether your content answers the question clearly, whether it's accurate and how it compares with other sources. Access is a prerequisite, not a promise.

Can I use robots.txt to keep private pages away from AI tools?

No. robots.txt is publicly readable and relies on crawlers choosing to follow it. Content that must stay private should sit behind a login or another real access control.

How often should I review my robots.txt?

Review it whenever you change platforms, plugins, CDN settings or hosting, and when a major AI provider announces a new crawler. A quick check of the live file each quarter also catches changes nobody remembers making.

Want to check your own site?

Run the free AEO audit to see your AEO readiness score and get ready-to-paste fixes. Using WordPress? AEO Bob Lite is free on WordPress.org. Rather have it done for you? Our done-for-you fixes start at $497.