How to Block AI Crawlers From Your Website
How to Block AI Crawlers From Your Website
Blocking AI crawlers from your website means adding Disallow rules in robots.txt for the specific user agents AI companies use to collect training data, such as GPTBot (OpenAI), CCBot (Common Crawl), Google-Extended (Google’s AI training), Bytespider (ByteDance), and anthropic-ai/ClaudeBot (Anthropic), while optionally leaving search or retrieval-oriented agents like OAI-SearchBot or PerplexityBot allowed if you want your content eligible for citation in AI search answers.
Compliance with robots.txt is voluntary, not legally enforced in most jurisdictions, meaning the file works as a clearly stated request that responsible crawlers honor rather than a technical block that guarantees exclusion; a minority of crawlers have historically ignored these directives.
Training Crawlers vs Search Crawlers
AI companies generally run two categories of bots: training crawlers that collect content to build future model training datasets with no direct traffic benefit to the site, and search or retrieval crawlers that fetch content in response to a specific user query, often driving citation and referral traffic back to the site. Many sites choose to block the former while allowing the latter.
Example robots.txt Block-Training Configuration
A commonly used pattern blocks GPTBot, CCBot, Google-Extended, Bytespider, and anthropic-ai (training-oriented agents) with Disallow: / rules, while leaving OAI-SearchBot, PerplexityBot, and ChatGPT-User (retrieval-oriented agents) with Allow: / rules, alongside standard search engine crawlers like Googlebot.
Confirm First: Crawler user-agent names change and new ones appear regularly. A quarterly review of your robots.txt against current documentation from OpenAI, Google, Anthropic, and community-maintained crawler lists keeps the rules current.
Compliance Is Voluntary
robots.txt is a request, not an access control mechanism; a bot can ignore it entirely, and a spoofed user agent can claim to be any crawler. Server logs are the only way to confirm whether a specific bot is actually honoring your directives in practice.
How This Interacts With Legal Frameworks
In the EU, a properly implemented robots.txt or machine-readable opt-out can carry legal weight under the DSM Directive’s TDM exception, since Article 53 of the EU AI Act references this opt-out mechanism specifically. In the US, robots.txt has no equivalent direct legal effect; it functions purely as a norm most major AI companies say they honor.
Brands managing this across more than one of the six major Southeast Asian marketplaces (Shopee, Lazada, TikTok Shop, Carousell, Tokopedia, and Bukalapak) alongside global platforms often reach the point where manual enforcement no longer scales. Takedown Taskforce handles this layer on a flat-fee basis with a no-results-no-charge guarantee, covering all six SEA marketplaces alongside global platforms from a single engagement.
Verified Sources Used
- DataImpulse: Confirmed sites can make a nuanced choice to block AI training crawlers like GPTBot, Google-Extended, and ClaudeBot while allowing search/retrieval agents like OAI-SearchBot, since these are documented as separate user agents by the major AI providers. https://dataimpulse.com/blog/robots-txt-ai-crawlers/
- Alicelabs (AI Crawler Management): Confirmed the EU AI Act’s Article 53 references the opt-out mechanism under Article 4 of the DSM Directive, giving machine-readable robots.txt directives legal relevance in the EU that they do not have in the US. https://alicelabs.ai/en/insights/ai-crawler-management
- seoscore.tools: Confirmed over 73 percent of websites had no AI-specific crawler rules as of 2026, and the recommended middle-ground strategy blocks training bots like GPTBot, CCBot, and Bytespider while allowing search bots like ChatGPT-User and PerplexityBot. https://seoscore.tools/blog/robots-txt-ai/

