robots.txt and AI crawlers - AgentReady

robots.txt and AI crawlers: what each bot name controls

Training, search and user-requested fetches are different bots now. Block the wrong one and you vanish from answers you wanted to be in.

A lot of small business owners have heard they should "block the AI bots," and a lot have heard the opposite. The useful answer is that AI companies now run several different bots with different jobs, and robots.txt lets you treat each one differently. Below is how the file works and what each bot name controls, read on each company's own documentation in October 2026.

How robots.txt works

robots.txt is a plain text file at the top of your site, at https://yourdomain.com/robots.txt. Google's documentation says it must be at the root of the host, can't sit in a subfolder, and only covers the exact host, protocol and port it's served from. So shop.yourdomain.com needs its own.

The file is made of groups. Each group starts with one or more User-agent: lines naming a crawler, followed by Disallow: and Allow: rules for paths on your site. A User-agent: * group applies to any crawler that doesn't have its own group. Paths are case-sensitive. Lines starting with # are comments.

Three limits to keep in mind:

The bots, company by company

OpenAI

Anthropic

Anthropic says its bots honor robots.txt and also supports the non-standard Crawl-delay line.

Google

Apple

Perplexity

Common Crawl

Three sample files

Allow everything (what AgentReady itself uses):

User-agent: *
Allow: /

Sitemap: https://yourdomain.com/sitemap.xml

Stay in AI search answers, opt out of model training:

User-agent: GPTBot
Disallow: /

User-agent: ClaudeBot
Disallow: /

User-agent: Google-Extended
Disallow: /

User-agent: Applebot-Extended
Disallow: /

User-agent: CCBot
Disallow: /

User-agent: *
Allow: /

Sitemap: https://yourdomain.com/sitemap.xml

This leaves Googlebot, OAI-SearchBot, Claude-SearchBot and PerplexityBot free to read the site, so you can still be found and linked.

Keep a private folder out of every crawler that listens:

User-agent: *
Disallow: /staff/

Remember this file is public. Listing /staff/ tells anyone who looks that the folder exists. Protect private pages with a password, not robots.txt.

What we'd do for a typical local business

For most local businesses, being found matters more than anything else in this file. So we'd leave Googlebot and the AI search bots (OAI-SearchBot, Claude-SearchBot, PerplexityBot) alone, because those are what put your name and a link in front of people asking for a plumber or a salon. Whether to opt out of training is a values call, not a marketing one: Google and Apple say blocking their training tokens doesn't affect search results, and OpenAI and Anthropic run training and search under separate bot names. Make the choice once, write it down, and use the second sample above if you want out of training.

Don't block the user-triggered fetchers (ChatGPT-User, Claude-User, Perplexity-User) unless you have a reason. They visit because a person asked about your page.

Check your host before you blame the file

Some hosts and security services block AI bots before robots.txt is ever read. Cloudflare, for example, lets every customer manage AI crawlers by behavior (search, agent, training), and its changelog says new defaults for new domains, starting September 15, 2026, block training and agent bots on pages that display ads while leaving search allowed. If you use a service like that, its settings matter as much as your robots.txt. Look in its dashboard for bot or AI crawler settings.

Testing

  1. Open https://yourdomain.com/robots.txt in a private window. It should show plain text.
  2. Save it as UTF-8 plain text from a plain text editor, as Google's documentation asks.
  3. In Google Search Console, the robots.txt report shows what Google fetched and any problems it found.
  4. Read it out loud: for each bot you care about, which group applies to it, and is that what you meant?

Sources

Checked October 2026.

Back to the AgentReady tool · The checklist

Start