How to Allow AI Crawlers in robots.txt
robots.txt allows every crawler it does not forbid, so a site with no AI-specific rules already allows AI crawlers at the robots.txt level. To allow them on purpose, add a group naming each bot, such as OAI-SearchBot, GPTBot and PerplexityBot, followed by Allow: /. Check that no blanket Disallow or firewall rule blocks them, then wait up to 24 hours for the change to take effect.
- robots.txt allows by default. You only need to edit it if a rule, plugin or firewall blocks AI bots.
- Each AI company runs separate bots for search, training and user requests. Allow or block each one on purpose.
- A bot with its own group ignores your wildcard group, so repeat any private paths in its group.
- robots.txt is a request, not a lock. OpenAI and Perplexity say user-triggered fetchers may not follow it.
Do you need to change robots.txt to allow AI crawlers?
Usually not. robots.txt is a small text file at the root of your site that tells crawlers which paths they may fetch. Under the Robots Exclusion Protocol, if no rule matches, access is allowed 1. So a site with no robots.txt, or one that blocks only private folders, already welcomes AI crawlers.
You need to edit it in three cases: a rule blocks all bots, a plugin or host added AI blocks you did not choose, or you want to write down your choices clearly. Cloudflare announced on 1 July 2025 that it was changing its default to block AI crawlers unless they pay creators 2. The post does not say whether that covers existing sites, so check your own settings in your CDN dashboard as well as robots.txt.
Before editing, look at your current file at yourdomain.com/robots.txt. The AI crawler checker reads it for you and flags blocks.
Which AI crawlers should you allow?
Allow the search bots if you want to appear in AI answers. Decide on the training bots separately. The table lists the tokens each company documents. A token is the name you write on the User-agent line.
OpenAI says its settings are independent: OAI-SearchBot surfaces sites in ChatGPT search, GPTBot crawls content that may train its models, and ChatGPT-User handles user actions 3. Sites opted out of OAI-SearchBot will not be shown in ChatGPT search answers 3. OpenAI recommends allowing OAI-SearchBot 3.
| Token | Company | What it does | If you block it |
|---|---|---|---|
| OAI-SearchBot | OpenAI | Surfaces sites in ChatGPT search | Not shown in ChatGPT search answers 3 |
| GPTBot | OpenAI | Crawls content that may train models | Signals no training use; search is a separate bot 3 |
| ChatGPT-User | OpenAI | Visits a page when a user asks | Rules may not apply to user-initiated visits 3 |
| PerplexityBot | Perplexity | Surfaces and links sites in Perplexity results | Fewer or no results from your site 4 |
| Perplexity-User | Perplexity | Fetches a page when a user asks | Generally ignores robots.txt 4 |
| ClaudeBot | Anthropic | Collects content that may contribute to training | Opts out of that collection 5 |
| Claude-SearchBot | Anthropic | Improves search result quality | May reduce visibility and accuracy in search results 5 |
| Claude-User | Anthropic | Fetches pages when a user asks Claude | May reduce visibility in user-directed search 5 |
| Google-Extended | Controls Gemini training and grounding use | Does not affect Google Search inclusion 6 | |
| Applebot-Extended | Apple | Governs training use of Applebot data | Does not crawl pages itself 7 |
How do you write the allow rules?
Name each bot on a User-agent line, then add Allow: /. Several User-agent lines can share one group, and the rules beneath apply to all of them. The protocol matches user-agent names without regard to case, but it matches path text with case 1.
One trap catches many sites. If a bot has its own group, it follows that group and not your wildcard group. So a private-folder rule under User-agent: * does not apply to GPTBot once GPTBot has its own group. Repeat the private paths in each named group.
The most specific rule wins. The protocol says the match with the most characters is used, and an Allow beats an equal-length Disallow 1. Keep the file small: Google reads up to 500 KiB of robots.txt 8.
How long do changes take, and what are the limits?
Allow up to 24 hours. OpenAI says it can take about 24 hours from a robots.txt update for its search systems to adjust 3. Perplexity says it may take up to 24 hours for its systems to reflect changes 4. Google generally caches robots.txt for up to 24 hours 8.
robots.txt also has limits. The protocol states that its rules are not a form of access authorization 1. OpenAI says ChatGPT-User visits are user-initiated, so robots.txt rules may not apply 3. Perplexity says its user fetcher generally ignores robots.txt for the same reason 4.
Compliance claims are also contested. In August 2025 Cloudflare alleged that Perplexity used undeclared crawlers to reach sites that had blocked it 9. Perplexity denied this and said Cloudflare confused its traffic with a third-party browser service's 10. We cannot settle that dispute. If content must be private, use a login, not robots.txt.
Can you allow search bots but block training bots?
Yes. Write Allow groups for the search bots and Disallow groups for the training bots. OpenAI describes GPTBot as the bot for training content, and says disallowing it signals that content should not be used for training 3. Perplexity says PerplexityBot is not used to crawl content for AI foundation models 4.
Google-Extended is a standalone token for Gemini training and grounding use, and Google says it does not affect inclusion in Google Search or act as a ranking signal 6. Google also notes it has no separate user-agent string, so it will not appear in your logs 6. The full pattern is in how to block AI training but still appear in AI search.
Blocking some bots may reduce visibility. Anthropic says disabling Claude-User may reduce visibility in user-directed search and disabling Claude-SearchBot may reduce visibility and accuracy in search results 5. Decide with that cost in view.
What mistakes block AI crawlers by accident?
The classic mistake is a leftover Disallow: / under User-agent: * from a staging site. Check for it first. A close second is a security plugin or CDN setting that blocks bots by user-agent and overrides robots.txt entirely, so the file looks fine while the bots get errors.
Other mistakes are typing a token wrong, such as GPT-Bot for GPTBot, saving the file with the wrong name or folder, and blocking script and style files that Apple's crawler needs to render pages 7. Test the live file, not the copy in your editor.
A further mistake is assuming allowed means visited. Allowing a bot only removes a barrier. Confirm real visits in logs; our guide to monitoring AI bot activity in server logs shows how.
When should you not allow AI crawlers?
Block or limit them for paid content, private data, and pages with licensing limits. Use real access control for anything sensitive. If your business model depends on people visiting the page directly, weigh the trade-off honestly.
If you only care about search visibility, you do not need to allow training bots. For wider checks, see how to check if ChatGPT and other AI bots can crawl your website and what AI crawlers are.
Frequently asked questions
How do I allow GPTBot and PerplexityBot in robots.txt?
Is OAI-SearchBot the same as GPTBot?
No. OpenAI documents OAI-SearchBot as the bot that surfaces sites in ChatGPT search, and GPTBot as the bot for content that may train its models 3. Each is controlled by its own robots.txt setting.
Does blocking Google-Extended remove me from Google AI Overviews?
No. Google says Google-Extended does not affect inclusion in Google Search or act as a ranking signal 6. It controls whether crawled content may be used for Gemini training and grounding in Gemini Apps.
Does robots.txt stop all AI bots?
Will allowing AI crawlers get me cited?
It removes one barrier only, and we do not guarantee citations. Your pages still need to be useful, trusted and readable without scripts. The guide on server-side rendering covers the last point.
Sources
- RFC 9309: Robots Exclusion Protocol · IETF (RFC Editor)Opened October 20, 2026. Supports: No matching rule means access is allowed; user-agent matching is case-insensitive and paths are case-sensitive; most specific match wins and Allow beats an equal Disallow; rules are not access authorization.
- Content Independence Day: no AI crawl without compensation · CloudflareOpened October 20, 2026. Supports: On 1 July 2025 Cloudflare said it was changing its default to block AI crawlers unless they pay creators; the post does not say if existing sites are covered.
- Overview of OpenAI Crawlers · OpenAIOpened October 20, 2026. Supports: OAI-SearchBot, GPTBot and ChatGPT-User roles; independent settings; opted-out sites are not shown in ChatGPT search answers; about 24 hours for changes; robots.txt rules may not apply to user-initiated visits.
- Perplexity Crawlers · PerplexityOpened October 20, 2026. Supports: PerplexityBot surfaces sites in results and is not used for foundation model training; Perplexity-User generally ignores robots.txt; up to 24 hours for changes.
- Does Anthropic crawl data from the web, and how can site owners block the crawler? · AnthropicOpened October 20, 2026. Supports: ClaudeBot, Claude-User and Claude-SearchBot roles; disabling Claude-User or Claude-SearchBot may reduce visibility in search results.
- Google's common crawlers · Google Search CentralOpened October 20, 2026. Supports: Google-Extended is a standalone product token for Gemini training and grounding; it does not affect Google Search inclusion or ranking; it has no separate user-agent string.
- About Applebot · AppleOpened October 20, 2026. Supports: Applebot-Extended does not crawl webpages and only governs training use; blocked scripts or styles may stop Applebot rendering content properly.
- How Google interprets the robots.txt specification · Google Search CentralOpened October 20, 2026. Supports: 500 KiB size limit; generally cached up to 24 hours; most 4xx treated as no robots.txt; 5xx stops crawling for the first 12 hours.
- Perplexity is using stealth, undeclared crawlers to evade website no-crawl directives · CloudflareOpened October 20, 2026. Supports: Cloudflare alleged on 4 Aug 2025 that Perplexity used undeclared crawlers on sites that blocked it.
- Agents or bots? Making sense of AI on the open web · PerplexityOpened October 20, 2026. Supports: Perplexity disputes Cloudflare's claims and says Cloudflare confused its traffic with unrelated BrowserBase traffic (4 Aug 2025)