20 October 2026

AI bots in robots.txt: allow or deny

AI bots are not synonyms. Blocking training while allowing live search works if each bot gets a conscious Allow or Disallow.

GPTBot, ClaudeBot, PerplexityBot and Google-Extended are not synonyms. Some user-agents train models. Others search live and can produce citations. A single User-agent: * with Disallow: / closes search crawlers and AI bots in one move. That happens when someone means to keep “only the AI” out and uses the wildcard. Googlebot disappears too. Recovery takes days; traffic and indexing feel it before the Slack thread recorded the intent.

Want to be named in ChatGPT Search or Perplexity? Let those bots into the content you want cited. Admin, cart and internal search stay closed, the same as with ordinary crawlers. An Allow on the whole site plus an open wp-admin is not a strategy. The choice belongs per bot in robots.txt, not as one global ban that takes Search with it.

Do not want training on unique pieces? Point Disallow at the training user-agents. That is a signal, not a lock on the door. HTML on a public URL remains fetchable. If something must stay secret, do not put it on a public URL. robots.txt is manners for polite bots, not a vault. Blocking training while still allowing live-search citation can sit side by side, as long as the agents are listed separately.

Googlebot and Google-Extended are not the same. Closing Search to keep AI training out is an expensive mix-up. llms.txt points crawlers to preferred documentation; robots.txt lets them in or not. Those two belong together and neither replaces the other.

Put the choice in two sentences as a comment at the top of the file. In a year nobody remembers why PerplexityBot is closed or why a path stayed open. A comment stops someone opening the wildcard “just to test” and leaving it there. Document what stays open on purpose for live search as well. Conscious Allow or Disallow per bot; no panic rule that takes Search with it. The file is the source of truth, not a Slack thread nobody finds again.

Want this on your site today?

First report free. Then auto-scan, a PDF in your inbox and alerts when a score drops.

Start a free report
Start free