Robots.txt generator for AI crawlers
Allow or block each AI crawler by what it fetches for: training, search or a user's request. Add disallowed paths and your sitemap, then copy or download the file. Everything runs in your browser.
# AI crawlers asked to stay out User-agent: GPTBot User-agent: ClaudeBot User-agent: Google-Extended User-agent: Applebot-Extended User-agent: Amazonbot User-agent: meta-externalagent User-agent: MistralAI-Training User-agent: CCBot Disallow: / # AI crawlers allowed User-agent: OAI-SearchBot User-agent: Claude-SearchBot User-agent: PerplexityBot User-agent: Amzn-SearchBot User-agent: meta-webindexer User-agent: MistralAI-Index User-agent: ChatGPT-User User-agent: Claude-User User-agent: Perplexity-User User-agent: Amzn-User User-agent: meta-externalfetcher User-agent: MistralAI-User User-agent: DuckAssistBot Allow: /
The starting choice, blocking training and allowing the rest, is an example and not advice. Every token was checked on 2026-11-24 against the operator page linked in its row. Crawlers with no such page are not listed.
See which AI crawlers read your pages and which assistants send buyers
Virling counts the pages each AI company's crawlers read, next to the visitors and revenue its assistant sends you. Virling is open source under AGPLv3: self-host it free, or start a 14-day hosted trial.
Training, search and user request: what each choice does
- Training. Blocking asks the operator not to use your pages to train models. Google-Extended and Applebot-Extended do not visit: they tell Google and Apple how to use what their normal crawlers fetch. Google-Extended also covers grounding in some Gemini products. Common Crawl is listed here because its archive is open to anyone.
- Search. These crawlers build the indexes AI search answers from. Blocking them can remove your site from AI answers: OpenAI says sites opted out of OAI-SearchBot will not be shown in ChatGPT search answers, though they can still appear as navigational links.
- User request. These open a page because someone asked about it. Blocking them can stop an assistant from reading the page it was asked about, and several operators say robots.txt may not apply.
robots.txt is a request, not enforcement. A crawler has to choose to follow it, and it hides nothing: the file is public, so anyone can read the paths you list. Keep private pages behind a login, and block unwanted bots at your server, firewall or CDN.
How to publish the file
- Choose Allow or Block for each crawler, and add the paths allowed crawlers should skip.
- If your site has no robots.txt, upload this one to the root of your domain. If it has one, first remove its old groups for the crawlers named here, then add these lines and keep the rest.
- Open
/robots.txton your own domain and check that the new lines are there. Each subdomain needs its own file. - Paste the live file into the AI crawler checker, which shows the verdict and the deciding rule for most of these crawlers.
A crawler that has its own group ignores your User-agent: * group. If that group blocks paths, enter them as disallowed paths too, or the crawlers you allow will no longer be asked to skip them. The file has no * group of its own, so search engines and other bots keep following your current rules.
Changes are not instant: OpenAI says its search results can take about 24 hours to adjust, Amazon says about 24 hours, Perplexity and Meta say up to 24 hours, and DuckDuckGo says 72 hours. After that, run your access log through the AI crawler log analyzer to see which crawlers still request pages.
A worked example
Example: a site at example.com wants to stay out of model training, stay in AI search, and keep its members area out of both. It keeps the starting choices, enters /members/ as a disallowed path and adds its sitemap. The generator returns:
# AI crawlers asked to stay out User-agent: GPTBot User-agent: ClaudeBot User-agent: Google-Extended User-agent: Applebot-Extended User-agent: Amazonbot User-agent: meta-externalagent User-agent: MistralAI-Training User-agent: CCBot Disallow: / # AI crawlers allowed User-agent: OAI-SearchBot User-agent: Claude-SearchBot User-agent: PerplexityBot User-agent: Amzn-SearchBot User-agent: meta-webindexer User-agent: MistralAI-Index User-agent: ChatGPT-User User-agent: Claude-User User-agent: Perplexity-User User-agent: Amzn-User User-agent: meta-externalfetcher User-agent: MistralAI-User User-agent: DuckAssistBot Allow: / Disallow: /members/ Sitemap: https://example.com/sitemap.xml
The eight training tokens share one Disallow: /. The other crawlers may read everything except /members/, because the longest matching path wins. The sitemap line is outside every group and applies to all crawlers.
After you publish: do AI visits pay?
What a block costs depends on what the assistant sends you. Compare the pages its crawlers read with the visits and payments that follow, before and after the change.
Related tools and guides
- AI crawler checker: paste a robots.txt and see which AI crawlers it lets in.
- llms.txt generator: list the pages you want AI tools to read.
- Is AI search traffic worth anything?: how to measure the visitors and revenue AI answers send.
- Perplexity revenue tracking: see which visits from Perplexity lead to payments.
- AI crawlers: count which pages GPTBot, ClaudeBot and other bots read on your site.
AI robots.txt FAQ
How do I block AI crawlers in robots.txt?
Name each crawler in a User-agent line and put Disallow: / below it. Several User-agent lines can share one set of rules. Save the file as robots.txt at the root of your domain, such as https://example.com/robots.txt.
Can I block AI training and still appear in AI answers?
Often, because several operators use separate crawlers. OpenAI says you can disallow GPTBot and allow OAI-SearchBot, and each setting is independent. Not every token splits this cleanly: Google-Extended covers grounding as well as training, and meta-externalagent also covers indexing for Meta's products.
Does blocking search crawlers remove my site from AI answers?
It can. OpenAI says sites opted out of OAI-SearchBot will not be shown in ChatGPT search answers, though they can still appear as navigational links. Anthropic says disabling Claude-SearchBot or Claude-User may reduce your visibility in user searches.
Does robots.txt force AI crawlers to stay out?
No. It is a request that well-behaved crawlers follow, not enforcement. Perplexity says Perplexity-User generally ignores it, and OpenAI says the rules may not apply to ChatGPT-User. To keep a page private, put it behind a login. To stop a bot, block it at your server, firewall or CDN.
Does blocking Google-Extended affect Google Search?
No. Google says Google-Extended does not impact a site's inclusion in Google Search and is not used as a ranking signal.
Is anything I enter sent to a server?
No. The file is built in your browser, and the crawlers, paths and sitemap you enter stay on this page.
See what AI answers send you in revenue
robots.txt decides who may read. Virling shows what comes back: it links every visit to the payment it led to, so you see the customers and revenue each assistant brings. 14 days free.