Skip to content
← Back to Blog

robots.txt for AI search: access, training and firewall checks

Separate search access from training preferences, test your actual HTML response, and understand what a crawler check can and cannot prove.

Does ChatGPT mention your brand?

See which of 3 sample ChatGPT answers mention your brand and which sources they cite.

Search discovery, user-requested page retrieval and model training are different uses of a website. Before editing robots.txt, decide which use you want to allow. One blanket “allow AI” or “block AI” choice can hide those differences.

Separate search from training

OpenAI describes OAI-SearchBot as its search crawler and GPTBot as a crawler for potential training use. ChatGPT-User handles user-initiated retrieval, which is not the same process as automated search indexing. Anthropic similarly documents Claude-SearchBot, Claude-User and ClaudeBot with different purposes. Consult each provider's rules rather than treating all three roles as interchangeable.

Allowing training access does not guarantee future model knowledge or a recommendation. Blocking one training crawler is not a universal removal request, nor does it erase earlier data. Choose training permissions separately from whether you want public pages discoverable through search.

Start with public pages

For a public marketing site, a simple starting point is:

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

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

Use your real sitemap address. Review specific bot groups too: a matching specific group can produce a different result from the wildcard group. Do not copy this example over policies you intentionally set.

robots.txt is not authentication. Protect customer reports and account pages with login and authorization. If a public page should not appear in search, assess a supported noindex directive; blocking its crawl can prevent a crawler from seeing that directive.

Test beyond robots.txt

A permitted URL can still return a firewall challenge, rate limit, redirect loop or empty HTML. Test representative product, pricing and article pages, not just the homepage. Record the final URL, status, response content and time of the check.

A request carrying a crawler's User-Agent is a diagnostic probe, not proof that the verified crawler received the same response. Networks, verified bot identity and security rules can change the outcome. Confirm important failures against server logs and the provider's published verification guidance. A 200 response also needs to contain the expected article, rather than a challenge or loading screen.

Run a free readiness audit, then inspect the evidence behind each result. For rendering checks, read what crawlers receive before JavaScript.

FAQ

Does passing the audit mean my brand will be recommended?

No. It identifies access and content issues observed during a test. Indexing, retrieval, citation and product recommendations are separate outcomes.

Should I allow every training crawler?

That is a content-use decision, not a prerequisite for every search experience. Review the provider's current policy and your publishing requirements.

Does robots.txt protect private information?

No. Use authentication and authorization. A robots rule is a crawling instruction, not an access-control system.

Sources and further reading

GEO notes, every other week

What we learn tracking thousands of AI answers. No fluff.