What robots.txt does — and doesn't
robots.txt is a short text file at the root of your site that tells crawlers which parts they may read. Search engines and the major AI companies follow it. It's a request, not a lock: it keeps well-behaved crawlers out of your admin pages and away from content you don't want used, but it doesn't hide anything from a person, and it doesn't stop a crawler that ignores it.
The choice most businesses should make about AI
AI companies run separate crawlers for search and for training. The search ones decide whether ChatGPT, Claude and Perplexity can find your pages when someone asks for a business like yours. The training ones decide whether your text helps train the next model. You can say yes to the first and no to the second — that's the "AI search yes, AI training no" preset above, and the choice that keeps you in AI answers without donating your content.
When we checked India's 500 biggest .in websites, almost all of them let AI search in — and the ones that made a deliberate choice mostly blocked training while leaving search open.
Mistakes that cost traffic
Disallow: /underUser-agent: *— often left over from a staging site. It keeps out every crawler, Google included.- Blocking CSS and JavaScript folders. Google renders pages to understand them; blocking
/assetsor/_nextcan make your pages look broken to it. - Using robots.txt to hide a page. It stays findable through links. Use
noindexfor that. - Forgetting the Sitemap line. It's how crawlers that don't know your site yet find every page.
Already have a robots.txt? Check what it actually allows with the AI crawler checker.