AI Crawlers and robots.txt
robots.txt is a public file that communicates crawl preferences to compliant automated user agents. It can allow or disallow paths, but it is not a security control and crawler access alone does not guarantee indexing, training, citations or recommendations.
Download the existing robots.txt and merge changes carefully. Never replace a working file blindly, especially on WordPress, Shopify or another platform that may generate its own rules.
Where robots.txt goes
The file belongs at the root of each hostname:
https://example.com/robots.txt
Rules on one hostname do not automatically control a different subdomain. The file is public, so never put secrets or private URLs in it.
A conservative public-site example
User-agent: * Allow: / Disallow: /admin/ Disallow: /private-api/ Sitemap: https://example.com/sitemap.xml
This permits public crawling while excluding selected operational paths. It does not make the excluded locations secure; those still need authentication and server-side access control.
Common AI-related user agents
Website owners may encounter names such as GPTBot, OAI-SearchBot, ClaudeBot, PerplexityBot and Google-Extended. Their purposes and documentation can change, and a provider may use different agents for search, training or user-triggered retrieval. Review the provider's current documentation before choosing a policy.
Google-Extended is not the same as Googlebot. A rule aimed at Google-Extended should not be assumed to control ordinary Google Search indexing.
An explicit allow example
User-agent: OAI-SearchBot Allow: / Disallow: /admin/ Disallow: /private-api/ User-agent: PerplexityBot Allow: / Disallow: /admin/ Disallow: /private-api/
Explicit blocks are useful when they express a real policy, but repeating the same rules for many agents makes maintenance harder. If the general User-agent: * group already allows the public site, separate groups may not be necessary.
Common mistakes
- Blocking the whole site:
Disallow: /can prevent compliant crawlers from reading any public page. - Treating robots.txt as security: the file is advisory and publicly reveals listed paths.
- Overwriting platform rules: replacing the full file may remove important ecommerce or CMS controls.
- Confusing access with ranking: an allow rule only removes one possible access barrier.
- Forgetting the sitemap: a correct absolute Sitemap line helps search engines discover the preferred URL list.
How to audit crawler access
- Open the root robots.txt and confirm it returns HTTP 200 text.
- Read every user-agent group, including the general wildcard group.
- Check the homepage and important public paths are not accidentally disallowed.
- Confirm private tools and webhook endpoints are protected at the server, not only listed in robots.txt.
- Validate that the sitemap URL opens and contains canonical public pages.
- Recheck after changing a CMS, plugin, CDN or hosting configuration.
Will allowing AI crawlers improve visibility?
It may remove an access obstacle for a compliant crawler, but it cannot create useful content, independent authority or relevance. Some AI systems use search indexes or third-party sources rather than crawling a site directly. Measure actual outcomes over time instead of treating an allow rule as a ranking tactic.
Check your current crawler rules
Chak.ai reports selected public robots.txt rules and flags obvious blocks. Always review suggested changes against the existing file before publishing.
Run the free audit