Robots.txt for AI bots.
Add a User-agent group for each AI bot with Allow: / or Disallow: /. Search bots like OAI-SearchBot, Claude-SearchBot and PerplexityBot decide whether AI answers can cite you. Training bots like GPTBot, ClaudeBot and Google-Extended decide whether future models learn from your pages. Most businesses that want to be recommended allow the search bots.
Checked boxes get Allow: /. The rest get Disallow: /. Your existing rules for other bots stay as they are.
About robots.txt and AI.
Should I block GPTBot?
Only if you don’t want future OpenAI models trained on your pages. Blocking GPTBot does not remove you from ChatGPT search, which uses OAI-SearchBot. If you want to be recommended, allow OAI-SearchBot either way.
Where does robots.txt go?
At the root of your domain: yourstartup.com/robots.txt. In Webflow it is under Site settings, SEO. In Framer, under Site settings, General. In WordPress, use your SEO plugin’s file editor.
Does robots.txt stop bots that ignore it?
No. It is a request, not a lock. Firewalls and bot protection are what actually block traffic, and they often block AI crawlers by accident. The AI crawler checker tests for that.
See what AI says about your site.
Free audit in under a minute, no signup. Tracking is $9 a month at the founding price.