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.
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 fileWhat 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.txt | From | What it does | And robots.txt |
|---|---|---|---|
| Googlebot | Google Search, and with it AI Overviews and AI Mode | Follows it | |
| Bingbot | Microsoft | Bing, and the index its AI answers and Copilot draw on | Follows it |
| OAI-SearchBot | OpenAI | Surfaces sites in ChatGPT's search answers | Follows it |
| ChatGPT-User | OpenAI | Visits a page when a ChatGPT user asks about it | May skip it: a user asked for the page |
| PerplexityBot | Perplexity | Surfaces and links sites in Perplexity's results | Follows it |
| Perplexity-User | Perplexity | Fetches a page for a Perplexity user | May skip it: a user asked for the page |
| Claude-SearchBot | Anthropic | Indexes pages for Claude's search results | Follows it |
| Claude-User | Anthropic | Fetches a page when a Claude user asks a question | Follows it |
| Applebot | Apple | Search in Siri, Spotlight and Safari | Follows it |
| DuckAssistBot | DuckDuckGo | Reads pages for DuckDuckGo's AI answers | Follows it |
| meta-webindexer | Meta | Indexes pages so Meta's AI products can cite and link them | Follows it |
| MistralAI-Index | Mistral | Indexes pages for Mistral's search | Follows it |
| Amzn-SearchBot | Amazon | Search in Alexa and other Amazon products | Follows it |
Training
| Name in robots.txt | From | What it does | And robots.txt |
|---|---|---|---|
| GPTBot | OpenAI | Collects pages that may train OpenAI's models | Follows it |
| ClaudeBot | Anthropic | Collects pages that may train Anthropic's models | Follows it |
| Google-Extended | Controls Gemini training and grounding outside Google Search. Not a crawler: Googlebot does the fetching | A control name only, nothing fetches under it | |
| Applebot-Extended | Apple | Opts pages out of training Apple's models. Not a crawler: Applebot does the fetching | A control name only, nothing fetches under it |
| meta-externalagent | Meta | Collects pages for training Meta's AI models and for indexing | Follows it |
| Amazonbot | Amazon | Improves Amazon's products and may train its AI models | Follows it |
| MistralAI-Training | Mistral | Builds datasets for training Mistral's models | Follows it |
| CCBot | Common Crawl | An open crawl of the web that many model builders use | Follows it |
| Bytespider | ByteDance | ByteDance's crawler. ByteDance publishes no documentation for it | Nothing published |
| __usage_ai-training | Shared signal | One "no AI training" line for every vendor that reads it. Microsoft honours it from 1 February 2027; Google says it intends to in early 2027 | A 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.
More free tools
robots.txt tester
Enter a page. See which AI crawlers may fetch it, the rule that decides, and whether your firewall turns them away anyway.
Open the toolllms.txt generator
Enter your site and get an llms.txt written from your own page titles and descriptions, ready to edit.
Open the toolllms.txt validator
Check a site's llms.txt, or pasted text, against the current format, and see which of its links don't load.
Open the toolFree GEO audit
All of it at once: 27 checks of whether AI engines can reach, read and quote your site, scored from 0 to 100.
Open the tool
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.