Skip to content

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.

AI search and assistant crawlers

They fetch pages to answer a question and link to them as sources. Block them and those AI answers can't cite you.

AI training crawlers

They collect text to train AI models. Blocking them doesn't remove you from AI search answers.

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.

Sonnetpilot checks robots.txt, llms.txt and AI crawler access every week and warns you when a change blocks AI search. Start free

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.

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.