Robots.txt and User-Agent Rules for Controlling AI Crawler Access
A guide to verifying AI bots and writing robots.txt rules that hold.

To spot AI agents on a website, look in server logs for crawler user-agent tokens and the pages they requested, then check who they claim to be against the vendor-published IP ranges and reverse DNS. Separate bulk crawling from user-triggered fetches before interpreting intent. Robots.txt rules should also set access for each bot and what it does, rather than treat every request from an AI vendor the same way.
Why robots.txt became a policy instrument rather than a simple crawl gate
Robots.txt was designed to tell cooperative search engines which pages a site wants them to crawl. It now has to distinguish training permissions, search indexing, and live user access. Those are different commercial relationships with a publisher. A vendor can collect pages to improve a model, index them for cited answers, or retrieve one because a prospective customer asked to read it.
RFC 9309 formalized the file’s grammar in 2022 after a 28-year gentleman’s agreement. A crawler with a matching named group does not also inherit the wildcard group’s restrictions. As vendors introduce separate identities for separate purposes, an apparently modest addition to the file can therefore change both the publisher’s content policy and its crawl protections.
The four bot classes and what blocking each one actually does

Training crawlers are bulk harvesters that collect content to build or improve foundation models. Blocking them expresses a training opt-out without affecting current AI search visibility. GPTBot, ClaudeBot, and CCBot belong in this class. Google-Extended and Applebot-Extended express related usage preferences, but they are not independent crawlers and do not appear as standalone requests in server logs.
Search and answer-engine indexers build the retrieval indexes assistants use for cited answers. Blocking OAI-SearchBot or Claude-SearchBot can exclude a publisher from the corresponding answer channel.
Live user-triggered fetchers get pages for someone who is using an assistant. ChatGPT-User, Claude-User, and Perplexity-User represent this class. Blocking their access can frustrate a prospective customer who deliberately requested a page, although some fetchers bypass robots.txt by design.
Bulk harvesters and undisclosed scrapers form the fourth class. Bytespider, img2dataset, LAION downloaders, and unwanted Scrapy runs offer no citation or referral return in the pattern described here. Bytespider overlaps the training category, but its non-compliance makes network enforcement the operational distinction.
The verified token list: 14+ user-agent strings, what each does, and how to confirm identity
Vendor documentation is the authority for token spelling. An obsolete or misspelled token matches no intended crawler, leaving other applicable rules to determine access. A user-agent string alone proves no identity. To check that identity, check where the request came from against the vendor’s published ranges and reverse DNS where available.
OpenAI identifies GPTBot as its training crawler and OAI-SearchBot as its search indexer. Its published verification files are gptbot.json and searchbot.json, respectively. ChatGPT-User identifies user-triggered retrieval. Anthropic distinguishes ClaudeBot for training, Claude-SearchBot for search, and Claude-User for user fetches, with official outbound ranges supporting verification of the latter. Claude-Agent, added in November 2026, is the name its hosted browser agent uses.
Googlebot fetches pages for Google Search, including AI Overviews. Google-Extended controls Gemini training use. Google-Agent and Google-GeminiNotebook are user-triggered identities. Gemini-Deep-Research remains unconfirmed here and should not be treated as a verified token.
Applebot supports search and AI answers, while Applebot-Extended controls training use. PerplexityBot indexes and retrieves content for cited answers, and Perplexity-User handles user-triggered retrieval. Meta-ExternalAgent belongs to training collection, while meta-externalfetcher serves user requests. CCBot, Amazonbot, and Bytespider also belong in the training inventory.
The shared token __usage_ai-training was introduced in an Internet-Draft on 30 October 2026 with backing from OpenAI, Google, Microsoft, and Anthropic. Adoption is provider-specific during the transition. Named training groups must therefore stay in place until each provider supports the shared preference.
The RFC 9309 grammar trap that breaks most AI-era robots.txt files

The central structural trap is that a named allow group overrides wildcard restrictions. A publisher may have longstanding wildcard rules excluding staging paths, action endpoints, and infinite parameter URLs, then add a separate group allowing an AI search crawler. The named crawler no longer receives those wildcard protections.
Google’s documentation describes the same selection principle, with the applicable group taking precedence over other groups. A publisher can correctly decide to permit search indexing yet accidentally expose crawl traps through the way that decision is written.
To fix this, put the allowed user-agent declarations above one shared rule block. Postman’s rewrite uses this pattern, placing training crawlers, search crawlers, and coding agents above a shared allow rule and five disallow rules. Bulk harvesters that are blocked need their own group. Google-Extended and Applebot-Extended also need explicit named groups when expressing training opt-outs, because a wildcard block is not a substitute for naming these usage controls. Comments should explain the policy and how a maintainer can change it without breaking the shared restrictions.
Three configuration postures for different publisher goals
Citations without training is the defensible commercial default for most content publishers. This posture permits search indexers and user fetchers, including OAI-SearchBot, ChatGPT-User, Claude-SearchBot, Claude-User, PerplexityBot, Perplexity-User, and DuckAssistBot. Googlebot, Applebot, meta-externalfetcher, and Claude-Agent also remain permitted. Training identities such as GPTBot, ClaudeBot, CCBot, Meta-ExternalAgent, Google-Extended, and Applebot-Extended are blocked, with __usage_ai-training retained beside named training restrictions during the transition.
Maximum AI visibility is a good fit for documentation sites, developer tools, and brands that want models to learn their content. Documented agents share one stacked allow group. Crawl traps remain excluded within its shared rules, while Bytespider, img2dataset, unwanted Scrapy runs, and undisclosed scrapers are blocked separately. Postman provides the production example of this posture.
Selective vendor access instead blocks access by default and lets in only an approved set of bots. Dow Jones adopted that approach in May 2026, publishing an approved list of more than 60 bots, including search crawlers and three OpenAI scrapers. This posture suits high-value content with licensing arrangements or negotiations. It requires active maintenance because new, unlisted crawlers remain blocked by default. Each posture can reference llms.txt in a header comment, but none replaces CDN or WAF enforcement.
Where robots.txt cannot help: the enforcement gap and what fills it
Robots.txt is advisory. OpenAI, Anthropic, Google, and Perplexity honor it for their bulk crawlers, so the compliance gap should not be generalized to every AI request. Nevertheless, two distinct exceptions prevent the file from serving as a complete access-control system.
OpenAI’s documentation states that, for ChatGPT-User, “robots.txt rules may not apply”. Perplexity’s documentation says Perplexity-User “generally ignores robots.txt rules”. These are documented user-request exceptions. A robots.txt denial is therefore not a reliable way to enforce a restriction on these fetchers.
Other crawlers disregard permissions without that cooperative framework. TollBit reported in February 2026 that a material share of AI scrapes in Q4 2025 ignored explicit robots.txt permissions. On European sites, ChatGPT-User, Bytespider, and YouBot reached URLs the file excluded. A request can also spoof a legitimate user-agent string.
A CDN or WAF evaluates access before the origin responds and does not require crawler cooperation. Its block overrides a robots.txt allow. Cloudflare’s September 15, 2026 default-block change illustrates this separate layer, blocking bots classified as “Training” or “Agent” on ad-carrying pages for new domains while leaving search indexing bots welcome.
What widespread AI crawler blocking is doing to the information ecosystem
HTTP Archive’s September 2026 crawl of 15.5 million sites found training crawlers blocked roughly four times as often as live-answer fetchers. That difference suggests publishers often intend to refuse training while permitting discovery. But blocks that cover many bots can stop both uses. The distinction between those intentions is not consistently reflected in configuration.
BBC, Bloomberg, and USA Today block all nine headline crawlers in the supplied comparison. NYT, CNN, Forbes, Wired, and congress.gov block eight of nine. The most-visited sites are particularly likely to opt out. Reputable news sources also restrict AI crawlers more heavily than misinformation sites.
This creates an asymmetry in the available information pool. When trustworthy publishers withdraw more extensively, the content remaining available for training tilts toward less reliable sources. Limits on search access also leave less content that assistants can cite. The consequences extend beyond an individual publisher’s referral traffic to what assistants can learn from and retrieve.
How the EU AI Act and TDMRep change what robots.txt means legally
EU AI Act Article 53(1)(c), in force since August 2, 2025, requires general-purpose AI model providers to recognize and comply with copyright reservations under Article 4(3) of the DSM Directive using state-of-the-art technologies. A correctly maintained robots.txt can express such a reservation. That does not make every crawl rule a universal legal prohibition.
The GPAI Code of Practice, published in July 2025, commits signatories to robots.txt-aware crawling and respect for machine-readable reservations. OpenAI, Google, Anthropic, and Microsoft were among its signatories as of July 2026. Meta publicly refused to sign. Its refusal does not remove the separate EU legal dimension.
TDMRep, the W3C Text and Data Mining Reservation Protocol, complements the access preference with a record of reserved rights. The practical recommendation is to use both instruments. Robots.txt addresses cooperative access, while TDMRep supports the legal record if that preference is ignored. The US position is different, with robots.txt functioning as a request and courts looking to contracts, copyright notices, and terms of service for the binding component.
What llms.txt does and does not do, and where it fits alongside robots.txt
Llms.txt guides navigation. Jeremy Howard proposed the root-level Markdown file in September 2024 as a curated map of important site content. As of 2026, it remains a community convention with no W3C or IETF standard status. It is neither a training opt-out nor a substitute for crawl permissions.
The recommendation is to add it as a navigation aid and reference it in a robots.txt header comment, as Postman does. An assistant may use the map to understand content it can already reach, but access preferences still belong in robots.txt, with enforceable restrictions at the WAF layer.
How can you tell if AI agents are visiting your site, and what do those visits reveal?
Server logs show which pages the requests reached, while identity verification helps check who made them. The next step is classification by purpose. Training and indexing activity is generally high-volume and impersonal, whereas a user-triggered fetch can represent someone researching a product or service. How requests behave adds context, but their source still needs to be checked.
Server logs show requests and the content they asked for, vendor IP-range files help check who made them, and a CDN or WAF enforces the rules. Visitor intelligence addresses attribution after those distinctions are made. Tools should be judged in part on whether they report on humans, bulk crawlers, and user-triggered agents separately.
A ChatGPT-User fetch may indicate that a prospective customer requested product information. It does not by itself identify that person. Attribution beyond company-level reverse-IP identification to the individual’s name, title, email, or original ad source requires separate visitor intelligence capable of substantiating the connection.
Where that attribution exists, an agent fetch can be matched to a CRM record and used in an outreach workflow. Without it, the event remains evidence of retrieval. Robots.txt supplies the cooperative access layer, while visitor intelligence supplies the attribution layer. Both are needed to turn controlled access into a useful business signal.
Every new piece from Opt Out Report, as it's published.
Follow