Preferences

Privacy is important to us, so you have the option of disabling certain types of storage that may not be necessary for the basic functioning of the website. Blocking categories may impact your experience on the website. More information (Cookie Policy)

Robots.txt for AI Crawlers: What to Allow, What to Block

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.

Published on
11/10/2026
Updated on
11/10/2026
Reading time
9 min
Robots.txt for AI Crawlers: What to Allow, What to Block

Tools

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?

Question 1 of 425%
What do you want to know or change?

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.

Which AI crawlers exist and what do they do?

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.

VendorUser agentPurposeEffect of blocking
OpenAIGPTBotTraining data for OpenAI modelsContent not used for future training
OpenAIOAI-SearchBotIndexing for ChatGPT searchPages may not appear as cited results in ChatGPT search
OpenAIChatGPT-UserPages fetched when a user asks ChatGPT to visit themChatGPT cannot open your page on request
AnthropicClaudeBotTraining data for Claude modelsContent not used for future training
AnthropicClaude-SearchBot, Claude-UserSearch quality and user-requested fetchesLess visibility in Claude answers that search the web
PerplexityPerplexityBot, Perplexity-UserSearch index and user-requested fetchesLess likely to be cited in Perplexity
GoogleGooglebotGoogle Search, including AI Overviews and AI ModeRemoval from Search entirely
GoogleGoogle-Extended (token)Use of content for Gemini models and grounding outside SearchNo effect on Search ranking
AppleApplebot-Extended (token)Use of content for Apple's generative modelsApplebot can still crawl for Siri and Spotlight
Common CrawlCCBotOpen web archive reused by many AI datasetsContent 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.

Should you block AI crawlers?

For most businesses that want customers, no: block training if you must, keep search crawlers open. The trade-off depends on what you sell:

  • Brands, SaaS, e-commerce, local businesses: AI answers are an acquisition channel. Blocking search crawlers removes you from it. Allowing training crawlers also helps future models know your brand.
  • Publishers living from page views or subscriptions: blocking training crawlers protects content value; keeping search crawlers open still brings citations and links.
  • Sites with private or licensed content: block broadly and enforce at the server level, since robots.txt is a request, not an access control.

How do you block Meta's meta-externalagent crawler?

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/.

Two Meta crawlers, two different rules

CrawlerWhat Meta says it doesCan robots.txt block it?
meta-externalagentCrawls for training foundation AI models and for product indexingYes, with a disallow rule
meta-externalfetcherFetches individual links when a user asksMeta 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.

Check that the rule works

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.

What does Applebot-Extended do, and how is it different from Applebot?

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.

What each setting does

  • Both allowed: Applebot crawls your pages, and Apple can use that content for its foundation models.
  • Applebot allowed, Applebot-Extended disallowed: your pages stay discoverable in Spotlight, Siri and Safari, and their content is opted out of Apple's foundation model training.
  • Applebot disallowed: this is a different decision. Apple's Applebot-Extended page does not cover what it does to Siri and Spotlight, so read Apple's Applebot documentation before you block the main crawler.

Example

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.

Mistakes to avoid

  • Expecting Applebot-Extended to stop crawling. It does not crawl, so a rule for it cannot reduce Apple's visits to your site.
  • Assuming Siri drops your page after the opt-out. Apple says the page stays discoverable.
  • Blocking Applebot to opt out of training. That is the wrong token, and it can have effects you did not plan for.

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.

Two rules, two jobs

Rule in robots.txtWhat it changesWhat it leaves alone
Disallow Google-ExtendedGemini training and groundingCrawling, inclusion and ranking in Google Search
Disallow GooglebotCrawling for Google Search, so your pages leave SearchGemini 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.

Example

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.

Mistakes to avoid

  • Blocking Googlebot to keep content out of Gemini. That removes you from Search, and Google-Extended is the token meant for Gemini.
  • Looking for Google-Extended in your logs. The token only appears in robots.txt.
  • Assuming it controls AI Overviews. Google's page does not mention AI Overviews, so do not treat this token as a switch for them.

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.

Which mistakes block AI visibility by accident?

The most common one is a blanket rule copied from a forum. Frequent errors:

  • "User-agent: * / Disallow: /" left from staging, which blocks every bot including Googlebot.
  • Blocking OAI-SearchBot while meaning to block GPTBot, which removes you from ChatGPT search instead of training only.
  • A CDN or firewall bot-protection rule that returns 403 to AI user agents regardless of robots.txt. Check your server logs.
  • Blocking the CSS and JavaScript needed to render the page, so crawlers see an empty shell.
  • Important content only loaded client-side; many AI crawlers do not execute JavaScript, so ship the main text in the HTML.

Is robots.txt enough to get cited?

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.

How do you optimize your website for AI crawlers?

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.

Step 1: count AI bot hits by status code

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.

Step 2: request a page as a bot would

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.

Step 3: check that the main text is in the HTML

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.

Step 4: make sure robots.txt responds cleanly

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.

Conclusion

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.

Frequently asked questions

Does blocking GPTBot remove my site from ChatGPT answers?

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.

Does Google-Extended affect my rankings or AI Overviews?

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.

Do all AI crawlers respect robots.txt?

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.

Get your content plan for 30 days for free

We analyse your competitors, your website and your AI visibility to create a tailored content plan for free.

Our free SEO tools

See all our free tools

Get your content plan for 30 days for free

We analyse your competitors, your website and your AI visibility to create a tailored content plan for free.

Man with dark hair and beard wearing a light brown shirt speaks in front of a microphone on a podcast or recording setup.Portrait of a man with short dark hair wearing a white shirt and dark jacket, looking directly at the camera with a neutral expression.Man with short dark hair, beard, and clear glasses wearing a black t-shirt with a white circular logo, standing in front of a stone wall.Celio fabianoSmiling young woman with long brown hair wearing a red top and necklace, outdoors in a tree-filled background.Profile photo of Xavier Breull, Sorank customer
Google
Solid yellow five-pointed star icon on transparent background.Solid yellow five-pointed star icon on transparent background.Solid yellow five-pointed star icon on transparent background.Solid yellow five-pointed star icon on transparent background.Solid yellow five-pointed star icon on transparent background.
5/5
+5,000
users

Testimonials from ambitious founders

0 to 10000 visitors in 5 months

Celio Fabianomonrobotlavevitre.frGoogleE-commerce

0 to 5000 visits in 8 months

Thibault BMsorank.comGoogleSoftware

0 to 1104 clicks in 4 months

Dominiqueflight-sensations-idf.comGoogleLeisure and aviation

0 to 163 clicks in 6 months

Coworking Pariscoworking-paris.frGoogleOffice broker

x92 clicks in 7 months

Guide Zanzibarguidezanzibar.comGoogleTravel