Article 12Technical5 min read

robots.txt for AI Bots: GPTBot, ClaudeBot, PerplexityBot

By Michelle S.

Quick answer

robots.txt is a set of crawl requests, not a security control. It decides which URLs a bot may fetch. Blocking an AI crawler removes your pages from that crawler's reach, and many sites do it by accident.

Every AI answer starts with a fetch. Before a model can quote your page, a crawler has to request it, and robots.txt is the first thing a well-behaved crawler reads. The file does not protect content, and it does not force a bot to leave. It is an instruction that reputable crawlers follow and others may ignore.

What robots.txt can and cannot do

  • It can allow or disallow paths for a named user agent, and it can point to sitemaps.
  • It cannot require authentication, stop a scraper that ignores it, or hide a page from search results.
  • It cannot control how another company's crawler treats your content.
  • Crawl-delay is not supported by Google and is treated differently by other bots, so it is a weak traffic control.

The AI user agents worth knowing

Names and products change, so confirm each rule against the provider's current documentation before you ship it.

  • GPTBot: OpenAI's crawler for model training.
  • OAI-SearchBot: OpenAI's crawler for search results inside ChatGPT.
  • ChatGPT-User: a live fetch triggered by a person's request.
  • ClaudeBot: Anthropic's crawler.
  • Claude-SearchBot and Claude-User: Anthropic's search and user-triggered fetches.
  • PerplexityBot: Perplexity's index crawler.
  • Perplexity-User: Perplexity's user-triggered fetch.
  • Googlebot: Google Search.
  • Google-Extended: controls Gemini and Vertex grounding use, not Google Search ranking.
  • Bingbot: Bing and some Copilot surfaces.
  • CCBot: Common Crawl, which feeds many research and training datasets.
  • Applebot and Applebot-Extended: Apple search and AI use.
  • Meta-ExternalAgent: Meta's crawler.

Search, training and user-triggered fetches are different

Blocking GPTBot affects training collection. Blocking OAI-SearchBot affects whether ChatGPT can retrieve your pages for answers. Blocking ChatGPT-User can break a fetch a person just asked for. A single Disallow rule for all three is a blunt instrument that often removes visibility you wanted. Once a page is fetchable, the next question is whether an answer uses it; our ChatGPT citation guide covers the signals that turn access into a citation.

A safe starting file

Allow the crawlers you want, disallow only paths with no public value, and declare your sitemap. A short file is easier to review than a long one:

  • User-agent: * with Allow: / and Disallow rules for /cart, /checkout, /account and internal search.
  • An explicit Allow for the AI crawlers you want to reach your guides and service pages.
  • A Sitemap line with the absolute URL of your sitemap index.
  • No rule that disallows CSS, JavaScript or image paths wholesale.

Where AI blocks happen by accident

  • A blanket Disallow: / left over from staging.
  • A CDN bot-fight mode or a one-click block AI bots toggle that returns 403 before robots.txt is even read.
  • WAF rules that challenge any request without a browser fingerprint.
  • Security plugins that block user agents containing the word bot.
  • A missing robots.txt that returns an HTML error page instead of a 404.

Verify with the request a crawler makes

Fetch /robots.txt and confirm it returns 200 as text/plain. Then request a key page with the crawler's user agent and check the status code, not just the browser view. Server logs and Search Console crawl stats show what actually happened. If a CDN is returning 403 or an interstitial, fix that before editing robots.txt.

Crawl budget is not a fixed number

Crawlers allocate requests by host, and large sites receive more of them. A site with thousands of parameter URLs, slow responses or long redirect chains spends that budget on pages nobody needs. Cleaning the crawl path often does more than adding rules.

Do not block the files that explain the page

Googlebot needs CSS and JavaScript to render, and the AI crawlers that do render need the same. Blocking /assets/, /static/ or image directories to save bandwidth can leave a page unreadable. If you need to limit crawling, target duplicate parameter URLs and internal search results instead.

A review routine after every launch

  • Fetch /robots.txt and confirm it returns 200 as text/plain.
  • Request three key URLs with each AI user agent and check the status code.
  • Check CDN and WAF logs for 403s or challenge pages served to crawlers.
  • Confirm the Sitemap line points at a file that exists.
  • Keep a dated copy so you can see what changed between launches.

Keep the file short, review it after every CDN or security change, and treat each AI user agent as a separate decision.

If crawler access needs fixing across a whole site, our custom websites service sets up robots.txt, headers and page structure together.

Key takeaways

  • robots.txt controls fetching, not access; it cannot protect private content.
  • Search, training and user-triggered bots are separate decisions.
  • Check CDN and WAF rules, because they can block crawlers before robots.txt matters.

Ready to get discovered in AI search? Contact us today.