NEWAI Prompts Handbook: 200+ prompts and templates for better AI output.Get the book →
Free AEO tool

AI robots.txt Generator

Decide which AI crawlers can read your website and generate the robots.txt rules. Allow AI search while blocking AI training, or choose crawler by crawler.

Warning: change your website with care. Changing your website's settings, code, robots.txt, structured data or other files carries risk if you don't know what you are doing. Consult a qualified expert before you make changes, and always keep a backup. aeotool.com and aprompts are not liable for any impact on your website, its traffic, or its search or AI rankings.
Allow?CrawlerPurpose
GPTBot
OpenAI
Training
OAI-SearchBot
OpenAI
Search index
ChatGPT-User
OpenAI
User fetch
ClaudeBot
Anthropic
Training
Claude-SearchBot
Anthropic
Search index
Claude-User
Anthropic
User fetch
PerplexityBot
Perplexity
Search index
Perplexity-User
Perplexity
User fetch
Google-Extended
Google
Training
Applebot-Extended
Apple
Training
CCBot
Common Crawl
Training
Bytespider
ByteDance
Training
Meta-ExternalAgent
Meta
Training
Amazonbot
Amazon
Search index
# robots.txt generated by aeotool.com

# AI crawlers you have opted out of
User-agent: GPTBot
User-agent: ClaudeBot
User-agent: Google-Extended
User-agent: Applebot-Extended
User-agent: CCBot
User-agent: Bytespider
User-agent: Meta-ExternalAgent
Disallow: /

User-agent: *
Content-Signal: search=yes, ai-input=yes, ai-train=no
Disallow: /admin/
Disallow: /cart/
Allow: /

Sitemap: https://example.com/sitemap.xml
Export this output

Training crawlers vs search crawlers

Most AI companies now run separate crawlers for different jobs:

  • Training crawlers (GPTBot, ClaudeBot, CCBot, and the Google-Extended and Applebot-Extended tokens) gather content that may be used to train future models.
  • Search crawlers (OAI-SearchBot, Claude-SearchBot, PerplexityBot) index pages so assistants can cite them in answers.
  • User fetchers (ChatGPT-User, Claude-User, Perplexity-User) load a page when a person asks an assistant to read it.

If you want AI visibility, allow the search crawlers and user fetchers. Whether you allow training crawlers is a business decision. Blocking them doesn't affect Google Search rankings.

The three presets

  • Allow all AI: maximum visibility; every listed crawler may fetch your pages.
  • Allow AI search, block training: the most popular choice for businesses and publishers. You stay citable in ChatGPT, Claude and Perplexity answers while opting out of model training.
  • Block all AI: opt out entirely. You'll lose AI citations and referral traffic.

You can then switch individual crawlers on or off, add paths to block for all bots (like /admin/ or /cart/) and include your sitemap.

Before you publish

  1. Back up your current robots.txt.
  2. Merge any existing rules you need to keep, such as paths blocked for SEO reasons.
  3. Upload to your web root as robots.txt.
  4. Test it with the AI Crawler Access Checker.
  5. Check your CDN or firewall settings too: Cloudflare and others can block AI bots regardless of robots.txt.

Frequently asked questions

Does blocking Google-Extended remove me from AI Overviews?

No. AI Overviews use Google's regular search index, crawled by Googlebot. Google-Extended only controls use of your content for Gemini training and grounding outside Search.

What is the Content-Signal line?

A robots.txt extension proposed by Cloudflare that states your preferences for search, AI input and AI training use. It's a statement of intent rather than a technical block, and support is still developing.

Do all AI crawlers respect robots.txt?

The major declared crawlers from OpenAI, Anthropic, Google, Perplexity and Apple say they do. Undeclared scrapers may not, which is why some sites add firewall rules as well.