
Yes, robots.txt is the standard way to tell AI crawlers whether they can index your pages or use them for training, but compliance is voluntary. Use named tokens like GPTBot to block training crawlers while leaving search-focused tokens allowed if you still want your pages cited in AI search results. The file won’t physically stop a rogue bot, but every major AI vendor documents and honors it.
TL;DR:
- Place robots.txt at the domain root, create a separate file for every subdomain, and capitalize User-agent and Disallow exactly because directive names are case sensitive.
- OpenAI separates its search crawler from its training crawler, so you can allow search citations while blocking training; changes may take about 24 hours.
- Google’s AI training control does not affect Googlebot search crawling; Anthropic exclusion requires separate rules for both of its training crawlers.
- A disallowed page cannot expose its noindex tag to crawlers, so use meta directives for HTML pages and HTTP headers for PDFs and images.
- Robots.txt cannot protect sensitive content or stop noncompliant bots; use authentication for private material and CDN or WAF blocking when requests continue.


