Skip to content

Free tool

robots.txt generator for AI crawlers

Decide which AI crawlers may read your site, add the paths nobody should crawl and your sitemap, and copy the file. It is built in your browser: nothing you enter leaves it.

Start from a policy
AI search and answer crawlers

Ticked means allowed. Unticking one keeps your pages out of that product's answers.

AI training crawlers

Ticked means allowed. Unticking these keeps pages out of model training and does not affect AI search answers.

Your robots.txt

# Everyone not named below
User-agent: *
Allow: /

# Crawlers that may not read the site
User-agent: GPTBot
User-agent: ClaudeBot
User-agent: Google-Extended
User-agent: Applebot-Extended
User-agent: meta-externalagent
User-agent: Amazonbot
User-agent: MistralAI-Training
User-agent: CCBot
User-agent: Bytespider
User-agent: __usage_ai-training
Disallow: /

Save it as robots.txt at the root of your domain (yourdomain.com/robots.txt), served as plain text. Each subdomain needs its own.

Test a page against your live file

What a robots.txt can and can't do about AI

  • It can keep a crawler from fetching

    The crawlers in the table below say they follow robots.txt. A Disallow: / group under a crawler's name tells it to stay out, and the documented ones do.

  • It can't remove you from Google's or Microsoft's AI answers

    AI Overviews and AI Mode use what Googlebot crawled for Search, and Copilot uses Bing's index. Microsoft says its AI grounding preference "cannot be set in robots.txt": it is a page-level tag. Google's switch is the Search generative AI setting in Search Console, or nosnippet.

  • It doesn't hide a page

    robots.txt controls crawling, not indexing. A blocked page can still show up in search as a bare address if other sites link to it. To keep a page out of an index, let it be crawled and mark it noindex.

  • It can't stop a fetch a person asked for

    OpenAI, Perplexity, Google, Meta and Amazon each say their user-triggered fetchers may not follow robots.txt, because the request is the user's. Only a firewall rule stops those.

The crawlers behind AI answers and AI training

Two groups, and they are separate switches. Search and answer crawlers decide whether a product can read and link your pages. Training crawlers collect pages that may train a model. Blocking one group does not block the other.

Search and answers

Name in robots.txtFromWhat it doesAnd robots.txt
GooglebotGoogleGoogle Search, and with it AI Overviews and AI ModeFollows it
BingbotMicrosoftBing, and the index its AI answers and Copilot draw onFollows it
OAI-SearchBotOpenAISurfaces sites in ChatGPT's search answersFollows it
ChatGPT-UserOpenAIVisits a page when a ChatGPT user asks about itMay skip it: a user asked for the page
PerplexityBotPerplexitySurfaces and links sites in Perplexity's resultsFollows it
Perplexity-UserPerplexityFetches a page for a Perplexity userMay skip it: a user asked for the page
Claude-SearchBotAnthropicIndexes pages for Claude's search resultsFollows it
Claude-UserAnthropicFetches a page when a Claude user asks a questionFollows it
ApplebotAppleSearch in Siri, Spotlight and SafariFollows it
DuckAssistBotDuckDuckGoReads pages for DuckDuckGo's AI answersFollows it
meta-webindexerMetaIndexes pages so Meta's AI products can cite and link themFollows it
MistralAI-IndexMistralIndexes pages for Mistral's searchFollows it
Amzn-SearchBotAmazonSearch in Alexa and other Amazon productsFollows it

Training

Name in robots.txtFromWhat it doesAnd robots.txt
GPTBotOpenAICollects pages that may train OpenAI's modelsFollows it
ClaudeBotAnthropicCollects pages that may train Anthropic's modelsFollows it
Google-ExtendedGoogleControls Gemini training and grounding outside Google Search. Not a crawler: Googlebot does the fetchingA control name only, nothing fetches under it
Applebot-ExtendedAppleOpts pages out of training Apple's models. Not a crawler: Applebot does the fetchingA control name only, nothing fetches under it
meta-externalagentMetaCollects pages for training Meta's AI models and for indexingFollows it
AmazonbotAmazonImproves Amazon's products and may train its AI modelsFollows it
MistralAI-TrainingMistralBuilds datasets for training Mistral's modelsFollows it
CCBotCommon CrawlAn open crawl of the web that many model builders useFollows it
BytespiderByteDanceByteDance's crawler. ByteDance publishes no documentation for itNothing published
__usage_ai-trainingShared signalOne "no AI training" line for every vendor that reads it. Microsoft honours it from 1 February 2027; Google says it intends to in early 2027A control name only, nothing fetches under it

Read from each vendor's own documentation on 2 December 2026. A vendor that publishes nothing gets no claim here.

Questions about writing a robots.txt

Do I have to list the AI crawlers I allow?

No. A crawler that finds no group with its own name follows the group for every crawler (User-agent: *). You only need to name the crawlers you treat differently. The generator can name the allowed ones too if you want it in writing; their group then repeats your blocked paths, because a named crawler ignores the general group.

Why is "AI search yes, training no" the starting point?

Because it is the commonest wish: be found and linked in AI answers, without handing pages to model training. OpenAI, Anthropic, Meta, Amazon and Mistral each run separate crawlers for the two, so you can have one without the other. Change it to whatever fits you; allowing training is a legitimate choice too, and models then learn about you from your own pages.

What does the __usage_ai-training group do?

It is a shared "no AI training" signal that replaces one line per vendor. Microsoft honours it from 1 February 2027 and Google says it intends to in early 2027. The generator writes it alongside the named training crawlers, so the file works before and after.

Does Bytespider follow robots.txt?

ByteDance publishes no documentation for Bytespider, so nobody can point to a promise. The generator lists it because it shows up in server logs; treat a Disallow for it as a request, and use a firewall rule if you need it kept out.

Can I block AI crawlers from one folder only?

Yes, by hand: give the crawler its own group with a Disallow for that folder, for example Disallow: /research/ under User-agent: GPTBot. The generator blocks a crawler from the whole site or not at all, which is what most sites want.

The file is written. Do the engines name you?

sirefs asks 8 AI engines your buyers' questions and shows how often they name you and who they name instead.