Article

robots.txt vs AI crawlers: training bots, search bots, and the ones that just fetch

Published . Topics: robots txt, ai crawlers, ai search, technical seo.

robots.txt is a small text file with a big job: telling crawlers where they’re welcome. It’s also the file most likely to have been edited once, in 2014, by someone who has since moved to Montana.

AI has made it more interesting. There are now several kinds of bots with different purposes, and blocking the wrong one can quietly remove you from places you’d like to be. Here’s how to tell them apart and read your own file.

Three kinds of AI-related bots

The big AI companies now split their bots by purpose. Roughly:

1. Training crawlers

These collect public web content that may be used to train AI models.

2. Search crawlers

These index pages so an AI search product can find and cite them.

3. User-triggered fetchers

These visit a page because a person asked an assistant to look at something right now.

The key idea: these are separate choices. You can opt out of training and still allow search. Whether you should is your call; there’s no single right answer.

How to read your robots.txt

Open https://yoursite.com/robots.txt in a browser. The rules are standardized in RFC 9309. A few things the standard says that trip people up:

Example snippets

These are examples, not recommendations. Adapt them to your site and your goals.

Example A: allow everything.

User-agent: *
Allow: /

Example B: allow search crawlers, opt out of some training.

# Example only
User-agent: GPTBot
User-agent: ClaudeBot
Disallow: /

User-agent: *
Allow: /
Disallow: /wp-admin/

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

Because OAI-SearchBot, Claude-SearchBot and Googlebot don’t match the first group, they fall back to the * group and are allowed.

Example C: the accidental vanishing act.

# Don't copy this unless you mean it
User-agent: *
Disallow: /

This asks every well-behaved crawler, Googlebot included, to stay out of the whole site. It’s often left over from a staging site that went live.

Common pitfalls

  1. The blanket Disallow. Example C, still sitting there months after launch.
  2. Blocking search along with training. A list like User-agent: GPTBot plus User-agent: OAI-SearchBot plus Disallow: / goes further than “don’t train on my content.”
  3. Forgetting the named group overrides *. You add a Googlebot group with one rule and accidentally drop all your * rules for Googlebot.
  4. The firewall disagrees. Your host, CDN or security plugin can block bots outright, whatever robots.txt says. Anthropic also notes that blocking its IPs can stop it from reading your robots.txt at all.
  5. Expecting instant results. OpenAI says changes can take about 24 hours to be reflected for search. Others may take longer.
  6. Treating robots.txt as a guarantee. It’s a request that well-behaved crawlers honor. And allowing a crawler doesn’t mean any assistant will mention you.

This article is general information, not legal or professional advice. Bot names and behaviors change; check each company’s documentation before you edit your file.

Check yours in a minute

Reading robots.txt by hand is fine; having a tool do it is faster. Our free AI Crawler Checker fetches your robots.txt and shows, bot by bot, which AI search and training crawlers it allows or blocks. No sign-up. If the file looks fine but bots still can’t reach you, see our guide on unblocking AI crawlers at the firewall or CDN.

All articles