Robots.txt and AI crawlers GPTBot ClaudeBot PerplexityBot web scraping 2026

Robots.txt is the 30-year-old text file that tells crawlers which parts of a site they may fetch. In 2026 it’s doing a job it was never designed for: refereeing the AI web, where dozens of crawlers — GPTBot, ClaudeBot, PerplexityBot, Google-Extended and more — pull content to train models and to answer questions in real time. This guide covers what robots.txt can and can’t do in the AI era, the crawler landscape, whether AI bots actually obey it, the newer signals (llms.txt, Cloudflare controls), and what it all means whether you scrape the web or run a site that gets scraped.

I’m Andrii Byzov, an AI-Native Fractional CMO who works with web-data pipelines and AI-search visibility every day. Below is a practical, 2026-current view — with the honest caveats. For the legal side, see our is web scraping legal guide; for AI visibility, our AI search rank tracking piece.


Key Facts

  • robots.txt is voluntary, not law. It’s a request (formalized as RFC 9309), enforced by good-faith compliance and by servers/CDNs — not by statute.
  • Training and search are now separate crawlers. You can block AI training (GPTBot, Google-Extended, ClaudeBot) while staying eligible for AI-search citations (OAI-SearchBot, Claude-SearchBot, PerplexityBot).
  • Real-time agent fetches often bypass robots.txt logic. When a user asks an AI to read a page, that fetch is arguably not a “crawler” — so robots.txt may not stop it.
  • Compliance varies by bot. Major crawlers (Googlebot, GPTBot, ClaudeBot) generally honor robots.txt; some historically have not — and a directive only works if the bot chooses to read it.
  • New signals exist: llms.txt (guides AI to your best content, ~10% adoption), plus Cloudflare’s block-AI and pay-per-crawl controls at the CDN layer.

What robots.txt is — and isn’t — in 2026

robots.txt is a plain text file at the root of a domain (/robots.txt) that lists user-agents and the paths they’re asked not to fetch. It was standardized as RFC 9309 in 2022, but the core idea hasn’t changed since 1994: it’s a polite request. It doesn’t authenticate anyone, it doesn’t block access at the network level, and it carries no legal force on its own. A well-behaved crawler reads it and complies; a crawler that ignores it faces no technical barrier from the file itself.

That distinction is the whole story in the AI era. robots.txt governs what compliant bots agree not to do — it is not a lock. Real enforcement (rate-limiting, blocking, paywalls) happens at the server or CDN, not in the text file.

The AI crawler landscape

The AI web is crawled by a growing cast, and the important shift is that each major provider now splits training from search/answer traffic into different user-agents:

User-agent Operator Purpose Honors robots.txt?
GPTBot OpenAI Model training Yes (documented)
OAI-SearchBot OpenAI ChatGPT search / citations Yes
ClaudeBot Anthropic Model training Yes
Claude-SearchBot Anthropic Search / citations Yes
Google-Extended Google Gemini training opt-out token Yes (token only)
PerplexityBot Perplexity Search / answers Yes (documented)
CCBot Common Crawl Open dataset (feeds many models) Yes
Meta-ExternalAgent Meta Training / AI features Yes

Because training and search are separate agents, a site can make a nuanced choice: opt out of being used to train models while remaining eligible to be cited in AI answers — block GPTBot but allow OAI-SearchBot, for example.

Do AI crawlers actually obey robots.txt?

Mostly the big ones do — and it’s easy to verify from your own server logs. Googlebot, GPTBot, ClaudeBot and PerplexityBot document their user-agents and respect standard directives. But three honest caveats matter:

  • Compliance is opt-in. A directive only works if the bot reads and honors it. Some crawlers have historically ignored robots.txt, and a spoofed user-agent can claim to be anything — so the file is a norm, not a guarantee.
  • Real-time agent fetches are a gray zone. When a person asks ChatGPT or Perplexity to summarize a specific URL, the tool fetches that page on the user’s behalf. Providers often treat this as user-directed access rather than crawling, so robots.txt training/crawl rules may not apply the way site owners expect.
  • The CDN layer can override you. Research on Cloudflare’s network found a meaningful share of sites accidentally blocking major AI crawlers at the CDN while their robots.txt says “allow” — the two layers must agree.

Beyond robots.txt: llms.txt, ai.txt and pay-per-crawl

robots.txt governs access; a newer file, llms.txt, governs navigation — it points AI systems toward your highest-value, cleanest content. Adoption is still early (roughly 10% of domains) but it’s a low-risk signal. Alongside it, CDNs have entered the picture: Cloudflare offers one-click blocking of AI crawlers and a pay-per-crawl model that lets publishers charge AI companies for access — moving the conversation from “allow/deny” toward “license.” The takeaway for 2026: robots.txt is one layer in a stack that now includes llms.txt, CDN controls, and emerging commercial terms.


What this means if you scrape the web

If you collect public web data, treat robots.txt as a professional norm, not an obstacle to route around. The defensible, sustainable posture:

  • Read and respect robots.txt for the paths you touch, and honor crawl-delay where set. It’s the baseline of good-faith, ethical collection.
  • Collect public, read-only data — don’t bypass logins or scrape personal data — and keep to reasonable rates so you don’t degrade the target site. (See is web scraping legal for the legal framing.)
  • Use ethically sourced proxies. Legitimate collection runs through clean, consented residential IPs and sensible rotation — not through networks that hide abusive traffic. This is exactly why proxies for web scraping and how they’re sourced matter.

robots.txt being “just a request” is not a license to ignore it — the practical risks of aggressive scraping are IP blocks, CDN challenges and reputational and contractual friction, all of which good practice avoids.

What this means if you run a site

Decide deliberately, then make robots.txt and your CDN agree:

  • Want AI-search visibility? Allow the search/answer agents (OAI-SearchBot, Claude-SearchBot, PerplexityBot) so you stay eligible for citations — AI-referred visitors are a fast-growing, high-intent channel.
  • Don’t want to feed training? Block the training crawlers (GPTBot, Google-Extended, ClaudeBot) while keeping search agents allowed.
  • Verify both layers. Check that your CDN isn’t silently blocking (or exposing) what your robots.txt intends, and consider an llms.txt to guide agents to your best pages.
  • Test what agents actually see. Because AI answers and crawls are geo-personalized, checking your site and its AI visibility from IPs in different countries (via residential proxies) shows you the real picture, not just your home view.

FAQ

Is robots.txt legally binding?

No. robots.txt (standardized as RFC 9309) is a voluntary request that well-behaved crawlers honor. It carries no legal force by itself and doesn’t technically block access — real enforcement happens at the server or CDN.

Can I let AI cite my site but not train on it?

Yes. Providers now separate training and search crawlers, so you can block training agents (GPTBot, Google-Extended, ClaudeBot) while allowing search agents (OAI-SearchBot, Claude-SearchBot, PerplexityBot) that make you eligible for AI-answer citations.

Do AI crawlers actually follow robots.txt?

The major documented crawlers (Googlebot, GPTBot, ClaudeBot, PerplexityBot) generally do, and you can verify in server logs. But compliance is opt-in, user-triggered real-time fetches are a gray area, and spoofed user-agents exist — so it’s a norm, not a guarantee.

What is llms.txt and do I need it?

llms.txt is a newer file that guides AI systems to your most valuable content — robots.txt governs access, llms.txt governs navigation. Adoption is still early (~10% of domains) but it’s a low-effort, low-risk signal worth adding.

Does respecting robots.txt matter when scraping?

Yes. Even though it isn’t legally binding, honoring robots.txt and crawl-delay is the baseline of ethical, sustainable scraping — it keeps you in the defensible lane and avoids blocks, CDN challenges and reputational risk.


Collect public web data the right way

Whether you’re building an AI data pipeline or monitoring how AI represents your brand, ethical collection starts with respecting site signals and running on clean, consented IPs. Get ethically sourced residential proxies from $1/GB — pay-as-you-go, 190+ countries, with the geo control to test and collect responsibly.