See what AI says about your brand. Get your free

AI SEO Glossary

We’ve collected answers to the most common AI Search questions, from visibility to citations and rankings.
Back to All Categories
AI Glossary Terms

Robots.txt for AI Crawlers

What is Robots.txt for AI Crawlers?

Robots.txt is a text file placed at the root of a website that tells web crawlers which pages or sections they are allowed to access. Originally designed for search engine bots like Googlebot, it has taken on new significance as AI companies deploy their own crawlers to collect web content for training and retrieval. You can use robots.txt to explicitly allow or block crawlers like GPTBot, ClaudeBot, and PerplexityBot from accessing your site. The decision is not straightforward. Blocking a crawler may prevent your content from appearing in that platform’s AI responses, while allowing it means your content may be used in training data and real-time retrieval.

How do I block or allow AI crawlers in Robots.txt?

Blocking or allowing specific AI crawlers in robots.txt follows the same syntax as managing any other crawler. To block GPTBot from your entire site, you add a User-agent: GPTBot directive followed by Disallow: /. To allow it while blocking it from specific directories, you use Disallow: /private/ or similar path-level rules. Most AI companies publish their official crawler user agent strings in their documentation, so you can configure rules for each individually. Before making changes, consider the tradeoff: blocking an AI crawler protects your content from training use but also reduces your visibility in that platform’s search and answer features.

Why it matters: Robots.txt is now a strategic decision about which AI platforms you want to appear in. Most site owners have not yet made that decision intentionally.

Be the Brand AI Engines Cite

Track mentions, analyze citations, and improve with page-level actions. Start with free plan, run your first set of prompts, and see where you stand in minutes.