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:
- It's a request, not a lock. The robots.txt standard, RFC 9309 (September 2022), says the rules are not a form of access authorization. Google's own page says robots.txt can't enforce crawler behavior and that other crawlers might not obey it.
- It doesn't remove pages from Google. Google says robots.txt is not a way to keep a page out of Google; a blocked URL can still show up, just without a description. Use a
noindextag or a password for that. - Some bots ignore the
*group on purpose. Google's AdsBot and Mediapartners-Google (the AdSense crawler) ignoreUser-agent: *and only follow rules that name them. If your site runs ads, don't blockMediapartners-Googleby name unless you mean to.
The bots, company by company
OpenAI
- OAI-SearchBot: used to surface websites in ChatGPT's search features. OpenAI says sites that opt out of it won't be shown in ChatGPT search answers, and that robots.txt changes can take about 24 hours to take effect for search.
- GPTBot: crawls content that may be used to train OpenAI's foundation models. Disallowing it tells OpenAI not to use your content for training.
- ChatGPT-User: fetches pages when a person's request in ChatGPT needs it. OpenAI says it isn't used for automatic crawling and that, because a user starts the action, robots.txt rules may not apply.
Anthropic
- ClaudeBot: collects web content that could contribute to model training.
- Claude-SearchBot: crawls to improve search result quality. Anthropic says blocking it may reduce your visibility in search results.
- Claude-User: fetches pages when a Claude user asks a question that needs them. Blocking it stops Claude from retrieving your pages for those requests.
Anthropic says its bots honor robots.txt and also supports the non-standard Crawl-delay line.
- Googlebot: Google Search's crawler. Google's AI features page says AI Overviews and AI Mode draw on pages that are indexed and eligible for a snippet in normal Search, so blocking Googlebot removes you from those too.
- Google-Extended: not a separate crawler. It's a robots.txt token that controls whether content Google crawls may be used to train future Gemini models and for grounding in Gemini Apps and Vertex AI. Google states it does not affect inclusion in Google Search and is not a ranking signal.
Apple
- Applebot: Apple's crawler, used for search features in Spotlight, Siri and Safari, and its data may also be used to train Apple's models.
- Applebot-Extended: doesn't crawl. Disallowing it opts your content out of training Apple's generative models. Apple says pages that disallow it can still appear in search results.
Perplexity
- PerplexityBot: surfaces and links websites in Perplexity's search results. Perplexity says it isn't used to crawl content for training foundation models.
- Perplexity-User: fetches a page when a user asks. Perplexity says it generally ignores robots.txt because a user requested the fetch.
Common Crawl
- CCBot: Common Crawl's crawler, which builds a public web archive. Its page gives
User-agent: CCBot/Disallow: /as the way to block it, and warns that some crawlers falsely claim to be CCBot.
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
- Open
https://yourdomain.com/robots.txtin a private window. It should show plain text. - Save it as UTF-8 plain text from a plain text editor, as Google's documentation asks.
- In Google Search Console, the robots.txt report shows what Google fetched and any problems it found.
- Read it out loud: for each bot you care about, which group applies to it, and is that what you meant?
Sources
- Google Search Central: Introduction to robots.txt
- Google Search Central: How to write and submit a robots.txt file
- RFC 9309: Robots Exclusion Protocol (Sept 2022)
- Google: Google's common crawlers
- Google: Google's special-case crawlers
- Google Search Central: AI features and your website
- OpenAI: Overview of OpenAI crawlers
- Anthropic: crawler help article
- Apple: About Applebot
- Perplexity: Perplexity crawlers
- Common Crawl: CCBot
- Cloudflare bot solutions changelog (2026-07-01 entry)
Checked October 2026.