Write a robots.txt that controls AI crawlers

Pick which AI crawlers to block and copy a robots.txt with the rules written out. Free, no login.

Choose the crawlers to block
OpenAI
Anthropic
Perplexity
Google
Apple
Amazon
Meta
Common Crawl
robots.txt
User-agent: *
Allow: /
Input
The crawlers to block, and your sitemap address
Runs in
Your browser. Nothing is sent to us.
Output
A robots.txt file to copy
Best for
A site that wants to stay in AI search answers and keep its pages out of model training

About the robots.txt generator for AI crawlers

robots.txt is the file at yoursite.com/robots.txt. Each group in it names a crawler after User-agent and lists what it may not read after Disallow.

The list holds the AI crawlers whose companies say they follow robots.txt, or give a robots.txt rule as the way to block them. Googlebot is not in the list, because blocking it removes your site from Google Search. The full list, with what blocking each one changes, is on the AI crawlers page.

Questions about the robots.txt generator for AI crawlers

Which crawlers should I block to stay out of model training but stay in AI search?

Press Block training only. It blocks GPTBot, ClaudeBot, Amazonbot, meta-externalagent and CCBot, and the Google-Extended and Applebot-Extended tokens. The search crawlers stay allowed.

I already have a robots.txt. What do I do?

Keep your existing groups and add the Disallow groups from the generated file below them. A crawler follows the group that names it, so rules you wrote under User-agent: * do not apply to a crawler that has its own group.

Why are ChatGPT-User and Perplexity-User not in the list?

OpenAI and Perplexity say these fetch a page because a user asked for it, and may not follow robots.txt. A rule for them may have no effect.

How do I check the file after I upload it?

Run the AI crawler checker on your domain. It reads the live file and shows which crawlers it lets in.

More free tools