How to Allow or Block AI Crawlers in robots.txt
The main AI crawlers OpenAI, Perplexity, Anthropic, and Google document, what each does, and robots.txt rules to allow AI search or opt out of training.
To control AI crawlers, add rules to robots.txt using the names each company publishes. Allow OAI-SearchBot, PerplexityBot, Claude-SearchBot, and Googlebot if you want to appear in AI answers. Block GPTBot, ClaudeBot, or Google-Extended if you want to opt out of training. Then check that your firewall does not block the bots you allowed.
This post is the robots.txt and firewall checklist, not a second llms.txt explainer. For that file, see What is llms.txt?.
If you already tested prompts and you are missing, start with My business is not showing up in ChatGPT or AI Overviews. I will not invent visit counts or promise that a robots.txt change will get you cited.
What can robots.txt actually control?
robots.txt is a request to crawlers, not a lock on your site. Google says a robots.txt file tells crawlers which URLs they can access, mainly to manage crawl traffic, and that it is not a mechanism for keeping a page out of Google.
To keep a page out of Google Search, use noindex or password-protect it. A URL that is disallowed in robots.txt can still appear in results if other sites link to it (Google, Introduction to robots.txt, accessed 27 Nov 2026).
Put the file at the root of the host you want to control, such as https://www.example.com/robots.txt. Anthropic also says to do this for every subdomain you want to opt out (Anthropic, site-owner crawler help, accessed 27 Nov 2026). Use the user-agent tokens the companies publish. Do not invent bot names.
Which AI crawlers exist, and what does each one do?
The table below uses only tokens and purposes from official docs fetched on 27 Nov 2026. User-agent strings can be spoofed. Confirm requests against each company’s published IP list when you need to be sure.
| Company | Token | Purpose, per the company | Does robots.txt apply? | Official IP list |
|---|---|---|---|---|
| OpenAI | OAI-SearchBot | Surfaces websites in ChatGPT search features | Yes. Sites opted out are not shown in ChatGPT search answers, though they can still appear as navigational links | openai.com/searchbot.json |
| OpenAI | GPTBot | Crawls content that may be used to train foundation models | Yes. Disallowing GPTBot indicates that content should not be used for that training | openai.com/gptbot.json |
| OpenAI | ChatGPT-User | User-initiated visits in ChatGPT and Custom GPTs | OpenAI says robots.txt rules may not apply. This bot is not used to decide ChatGPT Search inclusion | openai.com/chatgpt-user.json |
| OpenAI | OAI-AdsBot | Checks the safety of landing pages submitted as ChatGPT ads. Data is not used to train foundation models | OpenAI does not say. It only visits pages submitted as ads | openai.com/adsbot.json |
| Perplexity | PerplexityBot | Surfaces and links websites in Perplexity search results. Not used to crawl content for foundation models | Yes. Each Perplexity setting works independently | perplexity.ai/perplexitybot.json |
| Perplexity | Perplexity-User | User-requested fetches to help answer a question | Perplexity says this fetcher generally ignores robots.txt | perplexity.ai/perplexity-user.json |
| Anthropic | ClaudeBot | Collects web content that could contribute to model training | Yes. Anthropic says its bots honor robots.txt | claude.com/crawling/bots.json |
| Anthropic | Claude-SearchBot | Indexes content to improve search quality | Yes. Disabling it may reduce visibility and accuracy in Claude search results | Same Anthropic list |
| Anthropic | Claude-User | Fetches a page when a person asks Claude a question | Yes, as a robots.txt token Anthropic documents. Disabling it may reduce visibility for user-directed web search | Same Anthropic list |
| Googlebot | Crawls for Google Search, including Discover and all Google Search features | Yes. Google says Googlebot is the robots.txt control for how sites are crawled for Search | Google publishes crawler IP ranges and a verification method | |
| Google-Extended | A robots.txt product token, not a separate crawler user agent. It manages training and grounding in certain Google generative AI products aside from Search | Yes, as a robots.txt token. It does not impact inclusion in Google Search | There is no separate Google-Extended crawler. Google records this status when other Google crawlers fetch the page |
Sources for the table: OpenAI crawler overview, Perplexity crawlers, Anthropic crawler help, Google’s common crawlers, and Google-Extended (all accessed 27 Nov 2026).
I have not listed Bing crawler names here because I could not reliably read Bing’s official crawler pages in this pass. I would rather omit them than guess.
Which bots affect being cited, and which affect training?
If your goal is to be eligible to appear in AI answers, the documented search crawlers to leave open are OAI-SearchBot, PerplexityBot, Claude-SearchBot, and Googlebot.
OpenAI says each of its settings is independent, so you can allow OAI-SearchBot and disallow GPTBot. Perplexity also says each of its settings works independently, and says PerplexityBot is not used to crawl content for AI foundation models (OpenAI crawler overview, accessed 27 Nov 2026, Perplexity crawlers, accessed 27 Nov 2026).
If your goal is to opt out of training, the documented training controls are GPTBot, ClaudeBot, and Google-Extended. Blocking Google-Extended does not remove you from Google Search or from AI Overviews. Google says Google-Extended “doesn’t impact a site’s inclusion in Google Search nor is it used as a ranking signal in Google Search.”
To manage grounding in AI Overviews and AI Mode, use the Search generative AI control in Search Console (Google, How the Google-Extended product token works, accessed 27 Nov 2026). The Search Console side of that control is covered in How to Show Up in Google AI Overviews.
User-triggered fetchers are a third group: ChatGPT-User, Perplexity-User, and Claude-User. OpenAI says ChatGPT-User is not used to decide Search inclusion, and that robots.txt rules may not apply because a person started the visit. Perplexity says Perplexity-User generally ignores robots.txt. Anthropic documents Claude-User as a robots.txt-controllable bot and does not say that it ignores robots.txt.
Allowing a search crawler does not guarantee a mention, a citation, or a click. It only keeps the official door open.
What should I put in robots.txt if I want AI search and training?
For most small US business sites, a simple starting point is to avoid AI-specific Disallow rules and to include a sitemap line.
Under the robots.txt standard, a URL that no rule disallows is allowed, and Google’s robots.txt spec says that by default there are no restrictions for crawling (RFC 9309, Google robots.txt spec). Replace the host with your own.
# Example only. Host: www.example.com
User-agent: *
Allow: /
Sitemap: https://www.example.com/sitemap.xml
Watch for a leftover staging rule such as User-agent: * with Disallow: /. That tells every crawler that honors robots.txt and has no group of its own, including Googlebot and the AI search bots above, not to crawl any page on the site.
How do I allow AI search and opt out of training?
Use separate groups for the training tokens, and do not add Disallow rules for the search tokens you want to keep open.
# Example only. Host: www.example.com
# Opt out of documented training crawls. Leave search crawlers allowed.
User-agent: GPTBot
Disallow: /
User-agent: ClaudeBot
Disallow: /
User-agent: Google-Extended
Disallow: /
Sitemap: https://www.example.com/sitemap.xml
Read the Google-Extended trade-off before you paste that third group. Google says websites that specifically allow Google-Extended “are eligible to appear in responses and receive clicks via grounding in Gemini Apps” (Google Search Central blog, 30 Oct 2026, accessed 27 Nov 2026).
Disallowing Google-Extended is a non-Search generative AI choice. It is not the switch for AI Overviews. Google also notes that models may still output references or links to a domain that has disallowed Google-Extended, including when other sites that haven’t disallowed Google-Extended mention or link to your site (Google-Extended, accessed 27 Nov 2026).
How do I keep some folders out of all crawlers?
You can disallow a path for every crawler that honors robots.txt.
# Example only. Host: www.example.com
User-agent: *
Disallow: /staff-portal/
Sitemap: https://www.example.com/sitemap.xml
Do not rely on this to keep private content secret. Google says robots.txt instructions cannot enforce crawler behavior, and that password protection is the better method for information you need to keep secure (Google, Introduction to robots.txt, accessed 27 Nov 2026).
If you combine this with the training opt-out above, a bot that has its own group follows only that group. Google says user-agent-specific groups and the global group (*) are not combined, so repeat any path rule you want a named bot to follow inside that bot’s group (Google robots.txt spec, accessed 27 Nov 2026).
Why isn’t robots.txt enough?
A firewall, CDN, or bot product can still challenge or block the crawlers you just allowed. OpenAI recommends allowing requests from its published IP ranges as well as allowing OAI-SearchBot in robots.txt (OpenAI crawler overview, accessed 27 Nov 2026).
Perplexity publishes the same advice, plus WAF setup notes for Cloudflare and AWS WAF. In the Cloudflare case, Perplexity says to match each user agent against that bot’s own current IP ranges, set the action to Skip, and place the rule above blocking rules. It also warns that “Cloudflare’s Bot Fight Mode can’t be skipped with WAF custom rules” (Perplexity crawlers, accessed 27 Nov 2026).
Cloudflare’s own Bot Fight Mode documentation agrees: you cannot bypass or skip Bot Fight Mode with WAF custom rules or Page Rules (Cloudflare, Bot Fight Mode, accessed 27 Nov 2026). If that mode is on, it can still challenge a bot you intended to allow.
Cloudflare also documents separate AI Crawler and Agent access policies that can allow or block Search, Agent, and Training traffic. Check those settings if you use Cloudflare, and follow the vendor’s current steps rather than copying a stale rule.
Cloudflare’s current docs say new domains allow Search, Agent, and Training traffic by default, but if Bot Preference Sync is on and a policy is set to block or disallow, Cloudflare prepends its own rules to your robots.txt, so check the live file at /robots.txt rather than the copy on your server (Cloudflare, AI Crawler and Agent access policies and robots.txt setting, accessed 27 Nov 2026).
Anthropic says that blocking its IP addresses “may not work correctly or persistently guarantee an opt-out,” because that can stop the crawler from reading your robots.txt (Anthropic crawler help, accessed 27 Nov 2026). For an Anthropic opt-out, start with robots.txt, not an IP ban.
Keep vendor IP lists updated from the official JSON endpoints. I am not pasting address ranges here, because those lists change.
How long do changes take?
OpenAI says it can take about 24 hours from a robots.txt update for its search systems to adjust. Perplexity says changes may take up to 24 hours to reflect.
Google says crawling can take anywhere from several days to several months, depending on how often its systems determine a page needs to be refreshed, and that you can request a recrawl (Google, AI features and your website, accessed 27 Nov 2026). None of this is a promise that you will be shown.
How do I check which bots actually visit?
Look in server or CDN logs for the official user-agent tokens. Then confirm that the request IP is in the company’s published list. Google explains how to verify Googlebot and other Google crawlers, and its common crawlers page warns that the HTTP user-agent string can be spoofed (both accessed 27 Nov 2026).
OpenAI notes that when OAI-SearchBot and GPTBot fetch robots.txt, it may add a robots.txt marker to the user-agent string so you can tell those requests apart in logs (OpenAI crawler overview, accessed 27 Nov 2026).
If the file allows a bot and the firewall still challenges it, fix the firewall before you rewrite the content.
The ChatGPT and Perplexity appearance guides assume the crawler can reach the page: How to Get Recommended by ChatGPT and How to Get Cited by Perplexity. Crawler access is also one of the checks I describe in AI visibility audit vs a standard SEO audit.
What is the new no-AI-training signal?
A shared preference signal is emerging, but it is not a substitute for the company-specific rules above.
Anthropic says that as of 30 October 2026 it has begun recognizing a machine-readable preference that lets site owners say “no AI training,” based on work in the IETF AIPREF group. Anthropic says it is rolling this out across its services over time.
It also says a robots.txt rule that names ClaudeBot takes priority over that general signal, and that the way the setting is applied may change as the standard evolves (Anthropic crawler help, accessed 27 Nov 2026).
Google announced plans on 30 October 2026 to support a shared AI training control in robots.txt. If a site uses that policy token to opt out of training and Google-Extended is not explicitly specified, Google plans to treat that as if the publisher had disallowed Google-Extended. Existing company-specific controls will still work.
Google’s common crawlers documentation says it intends to support the signal, shown there as user-agent: __usage_ai-training, in early 2027 (Google Search Central blog, 30 Oct 2026 and Google’s common crawlers, accessed 27 Nov 2026). I am not giving a copy-paste template for a control that Google says it intends to support in 2027.
Why this is a reason to get in touch
I can read your robots.txt, compare it with the official bot names, and check whether a CDN or firewall is still blocking a search crawler you meant to allow. I quote that work after I understand the site. I do not guarantee a mention, a lead, or a ranking.
Request an AI visibility audit
If you want me to check which AI crawlers your site is letting in or shutting out, request an AI visibility audit on the contact page at https://subodhverma.si/contact/. Bring your URL and, if you have it, your current robots.txt. Custom quote only, with no placement guarantee.
If you would rather talk first, book a 30-min call at https://calendly.com/subodhverma/30min.
Frequently asked questions
If I block GPTBot, will I disappear from ChatGPT?
No. OpenAI documents GPTBot and OAI-SearchBot as independent controls. Blocking GPTBot indicates that your content should not be used to train foundation models. Allowing OAI-SearchBot lets your pages be surfaced in ChatGPT search answers. Sites opted out of OAI-SearchBot will not be shown in those search answers, though they can still appear as navigational links.
Does blocking Google-Extended remove me from AI Overviews?
No. Google says Google-Extended does not impact a site's inclusion in Google Search and is not used as a ranking signal. To manage whether your content is used for grounding in generative AI features on Google Search, such as AI Overviews and AI Mode, use the Search generative AI control in Search Console.
Why does Perplexity still visit pages I blocked?
Perplexity documents two bots. PerplexityBot surfaces and links websites in Perplexity search results, and each robots.txt setting works independently. Perplexity-User is a user-triggered fetcher that generally ignores robots.txt when a user asks about a page.
What is the difference between ClaudeBot and Claude-SearchBot?
Anthropic documents ClaudeBot for collecting web content that could contribute to model training, Claude-SearchBot for indexing content to improve search quality, and Claude-User for fetches started by a person's question.
How long until AI crawlers notice my robots.txt change?
OpenAI says it can take about 24 hours for its search systems to adjust after a robots.txt update. Perplexity says changes may take up to 24 hours to reflect in its systems. Google says recrawling can take from several days to several months, depending on the page.
Can I block AI training for all companies with one rule?
Not as a replacement for the company-specific rules that work today. Anthropic says that as of 30 October 2026 it has begun recognizing a machine-readable no-AI-training preference based on work in the IETF aipref working group, and that a robots.txt rule that names ClaudeBot takes priority. Google has announced plans to support a shared AI training control and intends to do so in early 2027.
Sources
- OpenAI, Overview of OpenAI Crawlers
- Perplexity, Perplexity Crawlers
- Anthropic, Does Anthropic crawl data from the web, and how can site owners block the crawler?
- Anthropic, crawler IP list
- Google, Google's common crawlers
- Google, How the Google-Extended product token works
- Google, Control how your content is used for generative AI at Google
- Google, AI features and your website
- Google, Introduction to robots.txt
- Google, robots.txt specification
- IETF, RFC 9309 Robots Exclusion Protocol
- Google Search Central blog, Supporting a shared AI training control for websites
- Google, Verifying Googlebot and other Google crawlers
- Cloudflare, Bot Fight Mode
- Cloudflare, AI Crawler and Agent access policies
- Cloudflare, robots.txt setting




