Answer

How do you stop AI crawlers from scraping your website?

robots.txt is the documented control for AI training crawlers, and the major vendors publish separate tokens so you can block training without losing search visibility. It is a voluntary standard, it does not apply the same way to user-triggered fetches, and it does nothing about content already collected. Enforcement beyond robots.txt is an edge or server job.

Published · Updated · Evidence-linked, not search-volume ranked.

Short answer

You stop AI crawlers with robots.txt, using the specific product tokens each vendor publishes: GPTBot for OpenAI model training, ClaudeBot for Anthropic model training, and Google-Extended for Gemini training and grounding. These are separate from the search tokens, so you can block training while staying in AI search results. Two limits matter more than the syntax. robots.txt is a voluntary standard that only well-behaved crawlers honour, and it does not cleanly cover user-triggered fetches, which OpenAI explicitly says may not follow robots.txt rules because a person initiated them. If you need enforcement rather than a request, that has to happen at your edge or web server.

Why this question is current

Exact query-volume data was unavailable, so RepoRadar uses these as current demand and intent signals rather than a claimed volume ranking.

  • how to stop ai crawlers · Google Suggest · US · checked 2026-09-01T07:22:00Z
    Live completions include how to stop ai crawlers, how to block ai crawlers, how to block ai web crawlers, and how to stop ai from crawling your website. Four distinct phrasings of the same intent served for one seed. Intent signal, not volume.
  • stories created in the trailing 24 hours with more than 60 points · Hacker News Algolia search_by_date · global English-language developer community · checked 2026-09-01T07:21:00Z
    The trailing-24h high-point set was dominated by browser, publishing, and web-platform control stories, including a 657-point item on extension removals from the Chrome Web Store. Corroborates current attention on who controls access to web content. Community attention signal, not a factual source for any claim in this article.
  • geo=US daily trends feed · Google Trends Trending Now RSS · US · checked 2026-09-01T07:21:00Z
    Returned only general-interest breakout terms and no AI-technology entries, so no ranking or volume claim is made anywhere in this article. Recorded as a negative result.

Who this helps

  • site owners and publishers deciding what to allow
  • developers maintaining robots.txt for a documentation site
  • founders weighing AI search visibility against training use
  • anyone who noticed unfamiliar AI user agents in their access logs

The blocks that actually exist today

Three vendors publish training-specific robots.txt tokens, and those are the ones worth knowing by heart. OpenAI's GPTBot covers content that may be used in training its generative AI foundation models. Anthropic's ClaudeBot covers content that could potentially contribute to training. Google's Google-Extended covers whether crawled content may be used for training future Gemini models and for grounding.

A full opt-out from training across those three is short. Add a group per token with User-agent set to the token name and Disallow set to a single forward slash, at the root of every domain and subdomain you want covered. Anthropic's help page is explicit that you must do this for every subdomain you wish to opt out from — a robots.txt on the apex does not cover a docs or blog subdomain.

One quirk to know about Google-Extended: it has no separate HTTP request user agent string. Google's docs say the crawling is done with existing Google user agent strings and the robots.txt token is used purely in a control capacity. You will not find Google-Extended in your access logs, so do not conclude from an empty log that the rule failed.

Blocking training does not remove you from AI search

This is the part most people get wrong, and all three vendors are unusually clear about it. OpenAI states each setting is independent and gives the exact scenario: a webmaster can allow OAI-SearchBot in order to appear in search results while disallowing GPTBot to indicate that crawled content should not be used for training. Google states plainly that Google-Extended does not impact a site's inclusion in Google Search and is not used as a ranking signal. Anthropic separates ClaudeBot from Claude-SearchBot for the same reason.

So the choice is not all-or-nothing. If your position is that you want to be citable but not trainable, that is a supported configuration: block GPTBot, ClaudeBot, and Google-Extended, and leave OAI-SearchBot and Claude-SearchBot allowed.

The reverse has a cost worth naming. OpenAI says sites opted out of OAI-SearchBot will not be shown in ChatGPT search answers, though they can still appear as navigational links. Anthropic says disabling Claude-SearchBot prevents indexing for search optimisation and may reduce visibility and accuracy in user search results. Blocking the search bots is a real visibility decision, not a free precaution.

User-triggered fetches are the gap in the fence

There is a third category besides training crawlers and search crawlers: fetches a person asked for. OpenAI's ChatGPT-User visits a page when a user asks ChatGPT a question about it. Anthropic's Claude-User does the same. Google's documentation classifies these separately as user-triggered fetchers, distinct from common crawlers.

OpenAI states the consequence directly: because these actions are initiated by a user, robots.txt rules may not apply. That is the honest description of the boundary. robots.txt is a convention for automatic crawling, and a person pasting your URL into a chat window is not automatic crawling.

Anthropic frames Claude-User as something site owners can control, and lists it alongside the other two bots with the same opt-out mechanism. The practical takeaway is that vendor behaviour differs here and you should read the specific page rather than assume one policy generalises. If your requirement is that no AI system ever fetches a given page on anyone's behalf, robots.txt is not the right tool and you need authentication.

Why robots.txt is a request, not a lock

The Robots Exclusion Protocol was standardised as RFC 9309 in September 2022, a Standards Track document that formalised the convention Martijn Koster defined in 1994 and added definition language, error handling, and caching rules. Standardisation made the syntax unambiguous. It did not make compliance mandatory, because nothing in the protocol can.

That means a robots.txt block works exactly as well as the crawler's willingness to honour it. The major vendors state that they do. Anthropic goes further and says its bots respect anti-circumvention technologies and will not attempt to bypass CAPTCHAs. Google says its common crawlers always respect robots.txt rules for automatic crawls, while noting the special case that AdsBot ignores the global user agent group with the ad publisher's permission — a useful reminder to read what each token actually promises.

Also budget for propagation. OpenAI notes it can take roughly 24 hours from a robots.txt update for its search systems to adjust. A change you made this morning is not evidence about behaviour this afternoon.

The long tail nobody maintains by hand

Three vendor tokens are the easy part. The Dark Visitors directory, a third-party listing rather than a primary source, currently paginates its known-agent catalogue across dozens of pages, spanning browser-driving agents, assistant fetchers, and third-party data providers that crawl on behalf of other companies. Names in that last category — commercial extraction and search-index services — are the ones most site owners have never added to a robots.txt file.

Keeping a hand-written allowlist current against that surface is not realistic for most sites. This is where a managed list or an edge control is a reasonable answer rather than a lazy one.

Cloudflare's AI Crawl Control, described in its docs as formerly AI Audit and available on all plans, is one such option: it reports which AI services are accessing content, allows per-crawler allow or block rules, tracks which crawlers actually follow your robots.txt directives, and lists a pay-per-crawl model as private beta. We have not tested it. It is cited here as a concrete example of the category — enforcement at the edge — not as a recommendation over any competitor.

Limits and things this cannot do

Blocking a crawler today does nothing about content collected before today. No vendor mechanism described here is retroactive, and none of them can remove content from a model that has already been trained. Anthropic frames its opt-out as signalling that the site's future materials should be excluded. Treat any block as forward-looking only.

IP blocking is worse than it looks. Anthropic's page explicitly warns that blocking its IP addresses may not work correctly or persistently guarantee an opt-out, because doing so impedes their ability to read your robots.txt file — meaning you can accidentally break the mechanism you were trying to enforce. Both OpenAI and Anthropic publish IP lists, which are better used for verifying that a request claiming to be their bot really is, than as a blocklist.

Verification is the one place you have solid ground. Google documents that its crawlers identify themselves by user-agent header, source IP, and reverse DNS hostname, and that all three can be used to confirm a crawler is genuine. Since a user-agent string is trivially forged, verify before you act on log evidence.

A useful next action

Decide the policy question first, because the syntax is ten minutes and the policy is the part that has consequences: do you want to be cited by AI search, trained on, both, or neither? Those are four different robots.txt files.

Then write the groups for GPTBot, ClaudeBot, and Google-Extended, deploy the file to every subdomain rather than just the apex, and wait a day before checking anything. After that, pull your access logs and look at what is actually hitting the site, verifying any bot that claims a known identity against the vendor's published IP list before you conclude anything from the user-agent string alone.

Sources checked

  • OpenAI API documentation: Overview of OpenAI Crawlers ↗ checked · vendor documentation, global

    Primary source. Lists OAI-SearchBot for ChatGPT search surfacing, OAI-AdsBot for validating submitted ad landing pages, GPTBot for content that may be used in training generative AI foundation models, and ChatGPT-User for user-initiated visits. States each setting is independent, that a webmaster can allow OAI-SearchBot while disallowing GPTBot, that it can take about 24 hours from a robots.txt update for search systems to adjust, that sites opted out of OAI-SearchBot will not appear in ChatGPT search answers though they can still appear as navigational links, and that because ChatGPT-User actions are initiated by a user, robots.txt rules may not apply. Publishes per-bot IP address lists.

  • Anthropic Help Center: Does Anthropic crawl data from the web, and how can site owners block the crawler? ↗ checked · vendor documentation, global

    Primary source. Documents three robots: ClaudeBot for collecting content that could contribute to model training, Claude-User for user-initiated requests, and Claude-SearchBot for search result quality. States the bots honour industry standard robots.txt directives and respect anti-circumvention technologies, supports the non-standard Crawl-delay extension, gives the exact User-agent and Disallow block needed to opt out, says the file must be added for every subdomain, and warns that blocking Anthropic IP addresses may not work persistently because it impedes their ability to read robots.txt. Publishes a bots.json IP list.

  • Google: Common crawlers, Google-Extended entry ↗ checked · vendor documentation, global

    Primary source. States Google-Extended has no separate HTTP request user agent string and that crawling is done with existing Google user agent strings while the robots.txt token is used in a control capacity. States Google-Extended is a standalone product token controlling whether crawled content may be used for training future Gemini models and for grounding in Gemini Apps and Grounding with Google Search on Vertex AI, and that it does not impact a site's inclusion in Google Search nor act as a ranking signal. Also documents Google-CloudVertexBot for site-owner-requested Vertex AI Agent crawls.

  • Google: Overview of Google crawlers and fetchers ↗ checked · vendor documentation, global

    Primary source, page dated Last updated 2026-06-12 UTC. Divides Google clients into common crawlers that always respect robots.txt for automatic crawls, special-case crawlers used where an agreement exists between site and product, noting AdsBot ignores the global robots.txt user agent with the ad publisher's permission, and user-triggered fetchers where an end user triggers the fetch. Documents that Google crawlers identify themselves by HTTP user-agent header, source IP address, and reverse DNS hostname.

  • RFC 9309: Robots Exclusion Protocol ↗ checked · IETF standards track, global

    Primary source. Standards Track RFC published September 2022 by Koster, Illyes, Zeller, and Sassman, specifying and extending the Robots Exclusion Protocol originally defined in 1994, adding definition language, error handling, and caching instructions. Establishes that robots.txt is a formal specification for service owners to control how content may be accessed by automatic clients, and defines the User-Agent line and group matching rules referenced in this article.

  • Cloudflare AI Crawl Control documentation ↗ checked · vendor documentation, global

    Primary source, page dated Last updated Aug 14, 2026. Describes AI Crawl Control, formerly AI Audit, as available on all plans, providing visibility into which AI services access content, allow or block rules for individual crawlers, tracking of which crawlers follow robots.txt directives with enforcement rules, and pay per crawl pricing described as private beta. Cited as an example of edge-level enforcement, not as an endorsement.

  • Dark Visitors agent directory ↗ checked · third-party directory, global

    Third-party directory, used only as a pointer to the breadth of the problem. Categorises agents as AI Agents, AI Assistants, and AI Data Providers, and lists 36 pages of entries including ChatGPT Agent, Google-Agent, Gemini-Deep-Research, Claude-User, Google-NotebookLM, and third-party crawlers such as Diffbot, ExaBot, and FirecrawlAgent. Not a primary source and not used for any factual claim about a named vendor's behaviour.

RepoRadar separates factual source claims from analysis. Recheck vendor docs before purchase, deployment, or policy decisions.