Robots.txt Generator
Pick a goal and get a correct robots.txt. The key difference: blocking training bots does NOT remove you from AI search.
# Allow AI-search bots (stay visible in ChatGPT/Perplexity), block training bots User-agent: GPTBot Disallow: / User-agent: Google-Extended Disallow: / User-agent: ClaudeBot Disallow: / User-agent: anthropic-ai Disallow: / User-agent: CCBot Disallow: / User-agent: Bytespider Disallow: / User-agent: Amazonbot Disallow: / User-agent: Meta-ExternalAgent Disallow: / User-agent: cohere-ai Disallow: / User-agent: Diffbot Disallow: / User-agent: * Disallow: /admin Disallow: /cart Disallow: /*? Sitemap: https://example.com/sitemap.xml
Blocking training bots does NOT remove you from ChatGPT/Perplexity. AI-search bots stay allowed.
What does a robots.txt file do?
robots.txt sits at your site root and tells crawlers which paths they may visit. It is not a security tool: it is a convention that well-behaved bots respect, useful for keeping areas like carts, admin panels or filtered pages out of search engines.
Should I block AI bots?
It depends on your goal, and this is the most common mistake: training bots (GPTBot, ClaudeBot, CCBot) feed model training, while AI search bots (OAI-SearchBot, PerplexityBot) feed answers with citations. Blocking the former does not remove you from ChatGPT or Perplexity; blocking the latter does.
If you want visibility in AI answers, let AI-search bots through. The "Visible, no training" preset in this generator does exactly that.
Întrebări frecvente
No. GPTBot is OpenAI's training bot; ChatGPT search uses OAI-SearchBot and ChatGPT-User. You can block training and stay citable in answers.
No. It is only a request to bots: anyone can still open those URLs. For private content use authentication or noindex.
At the domain root: it must respond at https://yourdomain.com/robots.txt. Remember the Sitemap line too.