Robots.txt for AI crawlers: the user agents of OpenAI, Anthropic,
Perplexity and Google, what each one does, and a configuration that keeps you citable.

On this page
In short
To stay visible in AI answers, allow the search and user-fetch crawlers (OAI-SearchBot, ChatGPT-User, Claude-SearchBot, Claude-User, PerplexityBot, Perplexity-User and Googlebot) and decide separately whether to allow the training crawlers (GPTBot, ClaudeBot, Google-Extended, Applebot-Extended, CCBot). Blocking a training bot does not remove you from AI search; blocking a search bot usually does. Each rule goes in your robots.txt under the exact user agent name the vendor documents.
Want to go further? Ask
Quick quiz
How should you get mentioned by ChatGPT and other AI assistants?
Sorank matches your answers
Test it for 3 days on your own site and see where you stand on Google, ChatGPT and the other AIs.
Start 3-day free trial3 days free, then stop whenever you want. 90-day results guarantee, conditions apply.
Your robots.txt for AI crawlers has become a business decision, not just a technical file. The same file that once only talked to Googlebot now decides whether ChatGPT, Claude, Perplexity and Gemini can read, quote and link your pages. The format itself has not changed: it is still the Robots Exclusion Protocol standardised as RFC 9309, with user agents, Allow and Disallow lines. What changed is the number of agents, and the fact that one vendor can run several bots with different purposes.
Most AI vendors now separate training, search indexing and user-triggered fetching into different user agents. The table summarises the main ones as documented by each vendor.
| Vendor | User agent | Purpose | Effect of blocking |
|---|---|---|---|
| OpenAI | GPTBot | Training data for OpenAI models | Content not used for future training |
| OpenAI | OAI-SearchBot | Indexing for ChatGPT search | Pages may not appear as cited results in ChatGPT search |
| OpenAI | ChatGPT-User | Pages fetched when a user asks ChatGPT to visit them | ChatGPT cannot open your page on request |
| Anthropic | ClaudeBot | Training data for Claude models | Content not used for future training |
| Anthropic | Claude-SearchBot, Claude-User | Search quality and user-requested fetches | Less visibility in Claude answers that search the web |
| Perplexity | PerplexityBot, Perplexity-User | Search index and user-requested fetches | Less likely to be cited in Perplexity |
| Googlebot | Google Search, including AI Overviews and AI Mode | Removal from Search entirely | |
| Google-Extended (token) | Use of content for Gemini models and grounding outside Search | No effect on Search ranking | |
| Apple | Applebot-Extended (token) | Use of content for Apple's generative models | Applebot can still crawl for Siri and Spotlight |
| Common Crawl | CCBot | Open web archive reused by many AI datasets | Content absent from future crawls of the archive |
Sources: OpenAI crawler documentation and Google's list of common crawlers. Names change occasionally, so check each vendor's page before editing the file. Our glossary entries on AI crawlers and OpenAI crawlers keep the definitions short.
For most businesses that want customers, no: block training if you must, keep search crawlers open. The trade-off depends on what you sell:
Add a robots.txt group for meta-externalagent and disallow the paths you want to keep out. Meta uses this crawler to collect content for training its foundation AI models and to improve its products by indexing content directly. Meta says a robots.txt change can take up to 24 hours to take effect.
User-agent: meta-externalagent
Disallow: / Use Disallow: / to block the whole site, or a folder path to block part of it. Meta's own example uses Disallow: /private/.
| Crawler | What Meta says it does | Can robots.txt block it? |
|---|---|---|
| meta-externalagent | Crawls for training foundation AI models and for product indexing | Yes, with a disallow rule |
| meta-externalfetcher | Fetches individual links when a user asks | Meta says it may bypass robots.txt, since the fetch was requested by the user |
So a rule for meta-externalagent is a training decision. It does not govern the single-link fetches that Meta-ExternalFetcher makes for users.
Search your logs for meta-externalagent/1.1, the user agent string Meta lists in its documentation. Once the 24 hours have passed, hits on disallowed paths should stop. If they continue, check that the group name is spelled exactly and that no CDN is serving a stale copy of robots.txt.
Tip
robots.txt is a request, not access control. If a page must stay private, protect it on the server with authentication, because Meta says its user-requested fetcher may bypass robots.txt.
For background on Meta's assistant, see our Meta AI glossary entry.
Source: Meta for Developers, web crawlers documentation, which shows no publication date.
Applebot-Extended is a robots.txt token that decides whether content Applebot has already crawled may be used to train Apple's generative foundation models. It does not crawl pages itself. Apple states that pages which disallow Applebot-Extended can still appear in search results and stay discoverable through Spotlight, Siri and Safari.
So the split is simple. Applebot does the crawling, and Applebot-Extended tells Apple how to use what Applebot collected. If you only want to opt out of training, you can leave Applebot alone and add one rule.
User-agent: Applebot-Extended
Disallow: / Apple's own example disallows a single folder instead, Disallow: /private/. Use the folder version if only part of your site should stay out of training.
Whether Apple's AI answers cite sources at all is a separate question. Our AI citation study on Apple covers it.
Source: Apple Support, Applebot article, published 4 September 2026.
Google-Extended is a robots.txt token that controls how Google uses content it has already crawled. It stops that content from being used to train future Gemini models and for grounding in Gemini Apps and on Vertex AI. According to Google's documentation, it does not affect your inclusion in Google Search or your ranking.
Google-Extended is not a crawler. Google crawls with its existing user agent strings, so you will not see a Google-Extended line in your server logs. Googlebot does the fetching, and the token only tells Google what it may do with the result.
| Rule in robots.txt | What it changes | What it leaves alone |
|---|---|---|
| Disallow Google-Extended | Gemini training and grounding | Crawling, inclusion and ranking in Google Search |
| Disallow Googlebot | Crawling for Google Search, so your pages leave Search | Gemini training, which is still governed by Google-Extended |
Keep in mind that the token is a usage permission, not a visibility switch. It matters most if you want Gemini to reuse your content in answers as well as in future models. Blocking Google-Extended cuts both uses at once, so decide which one matters more before you add the rule.
User-agent: Google-Extended
Disallow: /drafts/
Disallow: /members/ This keeps two folders out of Gemini training and grounding and leaves the rest of your site open. Use a site-wide Disallow: / only if none of your content should be reused by Gemini.
Google says it intends to support AIPREF, a shared preference signal for AI training, in early 2027. When it ships, review your Google-Extended rules against that signal.
For the basic syntax, read our robots.txt glossary entry.
Source: Google Search Central, list of Google's common crawlers, read 21 November 2026.
Explicit groups per user agent, with search bots allowed and a clear choice for training bots. Example for a business that wants AI visibility but prefers not to feed training data:
User-agent: OAI-SearchBot
User-agent: ChatGPT-User
User-agent: Claude-SearchBot
User-agent: Claude-User
User-agent: PerplexityBot
User-agent: Perplexity-User
Allow: /
User-agent: GPTBot
User-agent: ClaudeBot
User-agent: Google-Extended
User-agent: Applebot-Extended
User-agent: CCBot
Disallow: /
User-agent: *
Disallow: /admin/
Sitemap: https://www.example.com/sitemap.xml
Remove the second group if you are happy for your content to be used in training. Our free robots.txt generator builds the file, and the robots.txt checker shows which agents a live file actually allows.
The most common one is a blanket rule copied from a forum. Frequent errors:
No, it only opens the door. Once crawlers can read your pages, citation depends on whether those pages answer questions clearly, are structured for extraction and are confirmed by other sources. Clean structured data for AI search, answer-first sections and an optional llms.txt file help the next step.
Check three things: that AI bots reach your server, that each important page returns a 200 status with its main text in the HTML, and that your robots.txt file itself responds cleanly. Your server logs show the first point. A few curl commands cover the other two.
grep -Ei "GPTBot|OAI-SearchBot|ChatGPT-User|ClaudeBot|Claude-SearchBot|Claude-User|PerplexityBot|Perplexity-User|meta-externalagent|Applebot" access.log | awk '{print $9}' | sort | uniq -c This assumes the common combined log format, where the status code is the ninth field. A high count of 403 or 429 responses to AI bots points to a firewall or rate limit, not to robots.txt. For a fuller method, see our AI crawler logs guide.
curl -I -A "ChatGPT-User" https://www.example.com/your-page/ The user agent header tests how your server answers that name. It does not test the bot's real IP address, so treat a 200 as a good sign rather than proof. A 403 here usually means a bot or firewall rule matches that name.
curl -s https://www.example.com/your-page/ | grep -c "a sentence from your main text" If the count is 0 but the sentence shows in your browser, the text is loaded with JavaScript. Many AI crawlers do not run it, so move the text into the server response. Our JavaScript SEO guide covers the rendering options.
RFC 9309 sets two rules you can rely on. If robots.txt returns a 4xx status, the crawler may access any resource on the server. If it returns a 5xx status, the crawler must assume a complete disallow. A maintenance page that returns 503 for robots.txt therefore blocks every bot until you fix it.
Also serve robots.txt from one host only. If your site answers on both the apex domain and www, each host needs the same file, or the bots that visit the other host will read different rules.
Tip
Keep your sitemap limited to canonical URLs, and update the lastmod date only when the content changes. Our sitemap guide shows the format.
Source: RFC 9309, sections 2.3.1.3 and 2.3.1.4.
Treat AI crawlers as separate decisions: open the search and user-fetch bots, choose deliberately for training bots, and verify that your server applies the same policy. Then measure whether the open door turns into citations. Sorank tracks your brand in ChatGPT, Claude and Gemini every month and publishes content structured to be cited: start with a 3-day free trial.
Not by itself. GPTBot collects data for training OpenAI models. ChatGPT search relies on a different crawler, OAI-SearchBot, and on ChatGPT-User for pages a user asks it to open. Blocking only GPTBot limits training use while leaving your pages eligible to appear and be linked in ChatGPT search.
No. Google-Extended is a robots.txt token, not a separate crawler, and Google states that it does not affect inclusion or ranking in Google Search. AI Overviews and AI Mode are part of Search and use Googlebot. Google-Extended controls whether your content is used for Gemini models and grounding outside Search.
The major vendors document their user agents and state that their crawlers follow robots.txt, with nuances for fetches triggered directly by a user. Some less transparent bots have been reported to ignore it. For strict enforcement, combine robots.txt with server or firewall rules based on user agent and published IP ranges.
