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.
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
- AI crawler checkerReads your robots.txt and shows which of 21 AI crawlers it lets in.
- llms.txt checkerFinds your /llms.txt and scores its title, description, sections and links.
- Structured data checkerLists the JSON-LD types on your homepage and the fields each one is missing.
- Meta tag checkerReads the title, meta description, H1 and Open Graph tags on your homepage.
- Sitemap checkerFinds your sitemaps, counts the pages they list and reports errors.
- AI crawler viewShows the text, headings and links a crawler gets from your homepage without running JavaScript.
- llms.txt generatorDrafts an llms.txt from your homepage title, description and the pages in your sitemap.
- Link preview checkerShows the preview card your homepage makes in messages and social posts, and the tags behind it.
- Redirect checkerLoads your domain with and without www, over http and https, and shows where each one ends up.
- Local business schema generatorFill in your name, address, phone and hours and copy the structured data block for your homepage.