How to configure robots.txt for AI bots

Choose a publishing policy for AI search and training crawlers. Read practical robots.txt examples, check path matching and understand the limits of rule-based access checks.

Product sources checked 2026-11-30. Features and prices can change.

A public homepage, General rule allows /, The checker reads it. Claude-User, Its own rule blocks /, Publisher asks it to stop.
Which crawler can read the page?

Can I allow AI search while limiting training?

For services with separately documented tokens, you can publish separate rules. Decide which uses you intend to support and check that provider’s current policy. A rule requests behavior from matching crawlers; it does not force every client to comply or establish a private-access boundary.

Example: permit OpenAI search and disallow GPTBot

User-agent: OAI-SearchBot
Allow: /

User-agent: GPTBot
Disallow: /

User-agent: *
Allow: /

Sitemap: https://example.com/sitemap.xml

What does this example mean?

For a public /delivery path, the OAI-SearchBot group allows a read and the GPTBot group disallows it. Other matching clients use the wildcard group in this simple example. It does not say whether an AI answer will cite the delivery page. Replace example.com with your own origin and check whether more specific groups or rules already exist.

OpenAI’s documented identities · Matching rules in RFC 9309

Example: keep an administrative path outside the crawl policy

User-agent: *
Disallow: /admin/
Allow: /

Protect private content separately

The rule above is an illustrative crawl request. It is not authentication. A crawler that ignores it may still request the path. Private accounts and confidential data need actual access controls. Do not put secret URLs into a public robots.txt file as a substitute for protecting them.

Example: a longer matching rule changes one path

User-agent: ExampleBot
Disallow: /catalog/
Allow: /catalog/public/

Test the exact path

In that illustrative group, /catalog/private-item is disallowed and /catalog/public/item is allowed by the longer matching rule. Test the real case, including relevant path characters. Confirm which user-agent group applies before interpreting Allow and Disallow lines. Do not read a single wildcard line and ignore a specific matching group.

How should I treat Google-Extended?

Google-Extended is a published policy token for specified training and non-Search grounding uses. Google states that it does not affect inclusion or ranking in Google Search. It is not a separate HTTP crawler that you can count in your visit logs. Use Google’s current guidance for the controls relevant to Search generative features.

Google-Extended documentation

How do I verify my published rules?

Fetch robots.txt from the same production origin as the page. Inspect its response and body, then evaluate the intended token against the exact page path. Check the page’s own response separately. If real requests are still refused, inspect CDN, firewall and origin logs rather than assuming that a robots change fixed network access.

What does AA’s AI crawler checker establish?

Anonymous Analysts inspects public rules and page information under its own declared reader identity. Its report can explain the policy found for named services. It does not impersonate those services, prove that their real IP addresses pass your firewall or guarantee a citation. After a deliberate policy or source change, repeat the same URL check.

Check your public page’s rules