Robots & Sitemap Checker

Guides › AI crawlers

robots.txt template to block AI crawlers (and keep search engines)

This template blocks the main AI training and data crawlers we know of and leaves normal search crawling alone. Several User-agent lines in a row share the rules that follow them.

User-agent: GPTBot
User-agent: ClaudeBot
User-agent: Google-Extended
User-agent: Applebot-Extended
User-agent: CCBot
User-agent: Bytespider
User-agent: meta-externalagent
User-agent: Amazonbot
Disallow: /

User-agent: *
Allow: /

What this keeps working

Trade-offs

Blocking Google-Extended or Applebot-Extended only opts you out of model training; it doesn't affect search. New crawlers appear regularly, so review this list every few months. Our monitoring plan re-checks your robots.txt daily and tells you when it changes.

Check your site now

Related

How to block GPTBot in robots.txtHow to block ClaudeBot in robots.txtHow to block Google-Extended in robots.txtHow to block PerplexityBot in robots.txtHow to block CCBot in robots.txtHow to block Applebot-Extended in robots.txt

More free tools from Swift Labs

OG Preview Tool
Preview links on Facebook, LinkedIn, X and Slack, and audit Open Graph tags.
Email DNS Check
Check SPF, DKIM, DMARC and MX records in seconds.
DeadLinkPatrol
Find broken links across your whole site.