Free auditStart free
FREE TOOLRobots.txt generator

Robots.txt generator

Start from a preset, switch crawlers on or off and add your sitemap. Copy or download the file.

Roles from operator docsLive previewChecked with the tester
Short answer

To opt out of AI training but stay in AI search, disallow the training tokens, such as GPTBot, ClaudeBot and Google-Extended, and leave search crawlers such as OAI-SearchBot, Claude-SearchBot and PerplexityBot allowed. Each crawler follows only the group that names it, so one file can do both.

1 · Start from
2 · Crawlers

Switch off to block a crawler from the whole site.

AI training and products
AI search
AI user fetchers
Search engines
3 · Details
robots.txt
# AI training crawlers: opted out
User-agent: GPTBot
User-agent: ClaudeBot
User-agent: Google-Extended
User-agent: Applebot-Extended
User-agent: meta-externalagent
User-agent: Amazonbot
User-agent: CCBot
Disallow: /

# Everyone else
User-agent: *
Disallow: /admin/
Disallow: /cart

Sitemap: https://example.com/sitemap.xml

Result on your home page
GooglebotBingbotApplebotGPTBotOAI-SearchBotChatGPT-UserClaudeBotClaude-SearchBotClaude-UserPerplexityBotPerplexity-UserGoogle-ExtendedApplebot-ExtendedMeta-ExternalAgentAmazonbotCCBot

Upload it to the root of your host as /robots.txt. Each subdomain needs its own file.

01

How to use it

  1. 01
    Pick a preset
    Allow all, block AI training, block everything, or start from scratch with custom.
  2. 02
    Switch crawlers
    Turning a crawler off adds it to a group with Disallow: /. Changing a switch moves you to custom.
  3. 03
    Add your sitemap and private paths
    Paths you list are disallowed for every crawler that has no group of its own.
  4. 04
    Upload it
    Save the file as /robots.txt at the root of your host, then check it with the robots.txt tester.
02

The presets

PresetWhat it writesUse it when
Allow allUser-agent: * with Allow: /You want every crawler everywhere.
Block AI trainingOne group of training tokens with Disallow: /You want AI search and user fetches, not model training.
Block everythingUser-agent: * with Disallow: /A staging or preview site.
CustomYour switches and pathsAnything else.
03

Crawlers by job

Each role comes from the operator's own documentation. Blocking a training crawler opts you out of future training; blocking a search crawler can keep you out of that service's answers.

CrawlerJobWhat the operator says it does
GPTBotAI trainingCrawls content that may be used to train OpenAI's generative AI foundation models.
ClaudeBotAI trainingCollects web content that could potentially contribute to training Anthropic's generative AI models.
Google-ExtendedAI trainingA standalone robots.txt product token publishers use to manage whether content Google crawls may be used to train future Gemini models and for grounding in Gemini Apps and Grounding with Google Search on Vertex AI.
Applebot-ExtendedAI trainingA secondary robots.txt token that lets publishers opt out of their content being used to train Apple's general purpose foundation models.
Meta-ExternalAgentAI trainingCrawls the web for use cases such as training foundation AI models or improving products by indexing content directly.
AmazonbotAI trainingUsed to improve Amazon products and services; Amazon says it may be used to train Amazon AI models.
CCBotAI trainingCrawler for Common Crawl, a non-profit that provides an open copy of the web for research and analysis.
OAI-SearchBotAI searchSurfaces websites in search results in ChatGPT's search features.
Claude-SearchBotAI searchNavigates the web to improve the relevance and accuracy of Claude's search results.
PerplexityBotAI searchDesigned to surface and link websites in Perplexity search results; Perplexity says it is not used to crawl content for AI foundation models.
ChatGPT-UserUser fetchVisits web pages for certain user actions in ChatGPT and Custom GPTs, including GPT Actions.
Claude-UserUser fetchAccesses websites when individuals ask Claude questions.
Perplexity-UserUser fetchVisits a page to help answer a user's question in Perplexity and link the page; not used for web crawling or to collect training content.
GooglebotSearchGoogle Search's crawler, used as Googlebot Smartphone and Googlebot Desktop; its crawl preferences also affect Google Images, Video, News and Discover.
BingbotSearchBing's web crawler.
ApplebotSearchApple's web crawler; its data powers search in Spotlight, Siri and Safari, may provide context for AI answers, and may help train Apple foundation models.

CCBot (Common Crawl) builds an open web dataset that others reuse, so the training preset includes it.

04

Common mistakes

beforeUser-agent: Applebot Disallow: /Applebot powers search in Spotlight, Siri and Safari.
afterUser-agent: Applebot-Extended Disallow: /Apple says Applebot-Extended "does not crawl webpages"; it only controls training use.
beforeUser-agent: OAI-SearchBot Allow: / User-agent: * Disallow: /admin/A crawler with its own group ignores the * group, so /admin/ is open to it.
afterUser-agent: OAI-SearchBot Disallow: /admin/Repeat private paths in every named group.
beforeUser-agent: * Disallow: / (on production)Every crawler is shut out, search engines included.
afterUser-agent: * Allow: /Block whole sites on staging only.
Questions

What people ask next

Where does robots.txt go?

At the top-level directory of the host, as /robots.txt. Google says crawlers "don't check for robots.txt files in subdirectories," and a file on a subdomain is only valid for that subdomain.

Will blocking GPTBot keep me out of ChatGPT search?

No, they are separate. OpenAI says disallowing GPTBot "indicates a site's content should not be used in training generative AI foundation models." ChatGPT search uses OAI-SearchBot: "Sites that are opted out of OAI-SearchBot will not be shown in ChatGPT search answers, though can still appear as navigational links."

Is there one line that blocks every AI crawler?

No. Each crawler looks for a group that names its own product token, and falls back to * only if none does. List each token you want to block.

Can I keep a staging site out of Google with robots.txt?

Not reliably. Google says it may still index a disallowed URL and show it without a snippet. Put staging behind a login, or use noindex on pages crawlers can fetch.

Sources

Every rule, linked and dated

  1. How Google interprets the robots.txt specification developers.google.comchecked 25 Oct 2026
  2. RFC 9309: Robots Exclusion Protocol rfc-editor.orgchecked 25 Oct 2026
  3. Overview of OpenAI crawlers developers.openai.comchecked 25 Oct 2026
  4. Does Anthropic crawl data from the web, and how can site owners block the crawler? support.claude.comchecked 25 Oct 2026
  5. Perplexity crawlers docs.perplexity.aichecked 25 Oct 2026
  6. About Applebot support.apple.comchecked 25 Oct 2026

Wrote the file? Check what crawlers see.

The free audit reads your live robots.txt and checks AI visibility in ChatGPT, Perplexity, Gemini and Google AI Overviews.

Audit my site free
Free, no card60 secondsNobody will call you
46fixes shipped without a ticketA data platform
0→7ChatGPT citations in six weeksA payments API