How to block only AI training crawlers, without blocking AI search
Published 7/24/2026
This is the practical, step-by-step version of the decision covered in
Blocking AI training while staying visible in AI search —
how to actually write the robots.txt groups.
Step 1: List the training-purpose tokens you want to restrict
Using CrawlPact’s crawler directory, identify which documented crawlers are
categorised training for the operators relevant to you. As of this registry version, that
includes at minimum GPTBot, ClaudeBot, Google-Extended, Applebot-Extended, and
Meta-ExternalAgent.
Step 2: Give each token its own group
User-agent: GPTBot
Disallow: /
User-agent: ClaudeBot
Disallow: /
User-agent: Google-Extended
Disallow: /
User-agent: Applebot-Extended
Disallow: /
User-agent: Meta-ExternalAgent
Disallow: /
Each User-agent line starts a new group. A crawler token that isn’t named in any group falls
back to a wildcard (User-agent: *) group if one exists, and only to that — never to another
named group.
Step 3: Confirm your wildcard group doesn’t already block search crawlers
If you have an existing User-agent: * group with a broad Disallow: /, it will block every
crawler not explicitly named above too — including search-purpose crawlers like Googlebot and
OAI-SearchBot. Add an explicit Allow: / group for any search-purpose crawler you want to keep
visible, since an exact-token match always takes precedence over the wildcard group.
Step 4: Verify
Run CrawlPact’s AI crawler checker against your domain. It shows the declared result for every crawler in the registry — training-purpose tokens should show “Blocked,” and search/user-triggered tokens should show “Allowed” or “No explicit rule.”
What this doesn’t do
This is a declared instruction, not enforcement — see /limitations for what a
robots.txt rule can and cannot guarantee.
Related guides
How to publish an llms.txt file
A step-by-step implementation guide for adding a valid llms.txt (and llms-full.txt) file to your site.
How to publish an RSL (Really Simple Licensing) declaration
A step-by-step implementation guide for declaring permitted and prohibited AI uses of your content via RSL.
How to set the Content-Signal HTTP header
A step-by-step implementation guide for publishing a Content-Signal response header, and where to configure it depending on your hosting setup.
See how this applies to your own site
Run a free audit to check your declared AI crawler policy against your own domain.
Audit a domain