A Python utility called crawler_access.py, released by a developer who observed AI‑crawler blocks in the wild, demonstrates that a common robots.txt pattern—disallowing a list of AI agents while ending with an unrestricted “User‑agent: *” rule—still permits Google Search to crawl the site.
Generated AI‑crawler blocks in robots.txt
When a website owner prompts an AI‑website builder with “Add a robots.txt that blocks AI crawlers from training on our content,” the generated file typically starts with a comment and a series of named User‑agent groups such as GPTBot, ClaudeBot, CCBot, Bytespider, meta‑externalagent, and several “search” agents like OAI‑SearchBot and Claude‑SearchBot. Each of these groups is paired with a Disallow: / line, indicating a formal opt‑out for that crawler.
The same pattern appears in the PolyDraft guide, which lists the same set of tokens and notes that they are taken directly from each operator’s public documentation as of mid‑November 2026. The guide also clarifies that blocking a training token does not hide the site from that operator’s search results, while blocking a search token can remove the page from an assistant’s answer list.
What the checker evaluates
crawler_access.py parses a robots.txt file, applies Google’s matching algorithm (longest‑specific User‑agent wins, then longest‑specific Allow/Disallow rule wins, ties favor Allow), and then reports, for each known AI token, whether the root path “/” is allowed. The script also reports the presence of a Sitemap line, the existence of an optional llms.txt file, and whether any stale token names (e.g., anthropic‑ai or claude‑web) appear in the file.
Running the checker on a fabricated “Bramble Books” site shows that all the named AI training agents are correctly blocked, but the final wildcard group User‑agent: * Allow: / overrides the earlier disallows for any crawler not explicitly listed, which includes Googlebot and Applebot‑Extended. Consequently, Google Search can still index the site despite the author’s intent to hide it from AI‑driven assistants.
Typical pitfalls developers overlook
The most frequent mistake is omitting a specific rule for the mainstream search bots. Because Google’s crawler is identified simply as Googlebot, and the generated block list rarely mentions it, the catch‑all “*” rule applies, leaving the site fully indexable. The PolyDraft guide emphasizes that a wildcard does not inherit the restrictions of the named groups.
Another common omission is a Sitemap directive. Both sources note that without a Sitemap line, search engines lack a convenient map of the site’s public URLs, which can reduce crawl efficiency. The checker flags missing sitemaps, prompting owners to add one if appropriate.
Stale token names also linger in copied snippets. The checker reports these, and the PolyDraft article warns that operators may have retired tokens such as anthropic‑ai or claude‑web, so keeping the list up to date is essential to avoid a false sense of protection.
Why the loophole matters for site owners and AI services
The discrepancy between perceived and actual crawler access has practical consequences. Site owners who wish to keep their content out of AI‑generated answers may believe that a blanket block suffices, yet the wildcard rule silently permits classic search engines to fetch and index every page. This means the content can still appear in ChatGPT’s “search” results because OpenAI’s OAI‑SearchBot relies on Google’s index. Likewise, Apple’s Applebot‑Extended token is treated as a control token, not a crawler, so blocking it does not affect Apple’s search visibility. Developers therefore need to explicitly list the search agents they want to block, or replace the wildcard with a more restrictive pattern.
From the AI‑service perspective, the presence of an allowed search crawler expands the pool of URLs that can be cited, regardless of the site’s training‑opt‑out preferences. Consequently, the effort to protect intellectual property through robots.txt is only half‑effective unless both training and search agents are addressed. The open‑source checker provides a low‑cost way to audit a site’s configuration before publishing, reducing accidental exposure.
Editorial graphic and headline text by Signal Titans.
Source: Your Vibe-Coded robots.txt Blocks ChatGPT Search. I Wrote a Checker. · robots.txt Examples: Control Search and AI Crawler Access | PolyDraft

Leave a Reply