Free tool
robots.txt generator for AI crawlers
Choose which AI bots may read your site: allow the ones that cite you in AI answers, block the ones that only collect training data. Copy the file in a minute.
One path per line, starting with /. For WordPress: /wp-admin/
For WordPress: /wp-admin/admin-ajax.php
Full URL. One per line if you have more than one.
Your robots.txt
User-agent: *
Allow: /
# AI search and assistant crawlers: allowed
User-agent: OAI-SearchBot
User-agent: ChatGPT-User
User-agent: Claude-SearchBot
User-agent: Claude-User
User-agent: PerplexityBot
User-agent: DuckAssistBot
Allow: /
# AI crawlers: blocked
User-agent: GPTBot
User-agent: ClaudeBot
User-agent: Google-Extended
User-agent: Applebot-Extended
User-agent: Meta-ExternalAgent
User-agent: CCBot
Disallow: /
Save it as robots.txt in the top folder of your site, so it loads at yoursite.com/robots.txt. robots.txt is a request, not a lock: well-behaved crawlers follow it, others may not. Nothing you choose here is sent anywhere.
Then check the live file with the AI crawler checker.
Questions
robots.txt and AI bots, answered
How do I block AI crawlers in robots.txt?
Add a group with the crawler's name and a Disallow line, for example "User-agent: GPTBot" then "Disallow: /". You can list several user-agents above one Disallow line. The generator writes these groups for every bot you set to Block.
Should I block all AI bots?
Usually not. AI search crawlers such as OAI-SearchBot, Claude-SearchBot and PerplexityBot fetch pages to answer questions and link to them as sources. Blocking them keeps you out of those answers. Many sites allow AI search and block only the training crawlers, which is the generator's default.
Does blocking Google-Extended remove me from Google or AI Overviews?
No. Google-Extended only controls whether Google may use your pages to train its Gemini models. Google Search, including AI Overviews, uses Googlebot. To stay in Google, never block Googlebot.
Why does an allowed AI crawler repeat my Disallow lines?
A crawler follows only the most specific group that names it. Once a bot has its own group, it ignores the "User-agent: *" rules. Repeating your Disallow lines keeps it out of folders like /wp-admin/.
Where do I put robots.txt?
In the top folder of your site, so it loads at https://yoursite.com/robots.txt. On WordPress, SEO plugins such as Yoast and Rank Math have a robots.txt editor; on Shopify, edit the robots.txt.liquid template. Subdomains need their own file.
Will every bot obey robots.txt?
The major AI companies say their named crawlers follow it. robots.txt is still a request, not a lock: unknown scrapers may ignore it. To stop those, use your host's or CDN's bot protection, and check that it doesn't block the search crawlers you want.
Is anything I type sent to Sonnetpilot?
No. The generator runs in your browser and stores nothing.
More free tools: AI crawler checker, llms.txt generator and SEO, AEO and GEO checker. Read which AI crawlers to block, and which to keep.
Further reading
Guides on this topic
- How to add llms.txt to WordPress and ShopifyStep-by-step ways to add an llms.txt file to a WordPress site (Yoast, Rank Math, upload, or a plugin) and to a Shopify store (the llms.txt.liquid template), plus how to check it works.
- Which AI crawlers to block in robots.txt, and which to keepHow to block AI training bots like GPTBot, ClaudeBot, Google-Extended and CCBot in robots.txt without dropping out of AI search answers. Copy-ready rules, the common mistake, and how to check.
- Generative engine optimization: what it can do, and mistakes to avoidWhat generative engine optimization (GEO) can and can't do for your brand in AI answers, the most common GEO mistakes, and how to fix them.
Bring your website. We'll show you what to fix first.
Type your website and a free audit of up to 25 pages starts right after you sign up. No credit card required.