Block All AI Crawlers robots.txt Template
Use explicit groups for known AI-related tokens rather than User-agent: *. This broad template blocks documented training, AI-search, dataset, and user-request agents while leaving ordinary search open.

Use explicit groups for known AI-related tokens rather than User-agent: *. This broad template blocks documented training, AI-search, dataset, and user-request agents while leaving ordinary search open.

User-agent: GPTBot Disallow: / User-agent: OAI-SearchBot Disallow: / User-agent: ChatGPT-User Disallow: / User-agent: ClaudeBot Disallow: / User-agent: Claude-SearchBot Disallow: / User-agent: Claude-User Disallow: / User-agent: PerplexityBot Disallow: / User-agent: Perplexity-User Disallow: / User-agent: Google-Extended Disallow: / User-agent: Applebot-Extended Disallow: / User-agent: CCBot Disallow: / User-agent: * Allow: /
No permanent robots.txt file can literally block every present and future AI-related request. The practical approach is to maintain an explicit list of documented AI, AI-search, training, dataset, and user-request tokens while leaving ordinary search engines open. The following is a broad starter template:
User-agent: GPTBot
Disallow: /
User-agent: OAI-SearchBot
Disallow: /
User-agent: ChatGPT-User
Disallow: /
User-agent: ClaudeBot
Disallow: /
User-agent: Claude-SearchBot
Disallow: /
User-agent: Claude-User
Disallow: /
User-agent: PerplexityBot
Disallow: /
User-agent: Perplexity-User
Disallow: /
User-agent: Google-Extended
Disallow: /
User-agent: Applebot-Extended
Disallow: /
User-agent: CCBot
Disallow: /
User-agent: *
Allow: /
The file addresses OpenAI's GPTBot, OAI-SearchBot, and ChatGPT-User; Anthropic's ClaudeBot, Claude-SearchBot, and Claude-User; Perplexity's automatic and user-request agents; Google's Google-Extended control token; Apple's Applebot-Extended; and Common Crawl's CCBot.
The final wildcard group keeps other compliant crawlers open. That means Googlebot, Bingbot, and Applebot are not blocked by this example unless they match another group in your existing file.
Some agents crawl automatically for model development. Others build a search index, fetch a page for a user, or control how content already collected by a general crawler may be used. Some AI features also rely on ordinary search indexes. For example, blocking Google-Extended does not block Google Search, while limiting AI features inside Search may require controls that affect Googlebot or page snippets.
Because the purposes differ, this page uses “all AI crawlers” as shorthand for a broad list of dedicated, publicly documented AI-related tokens—not a promise that every AI system or undeclared scraper will stop.
OpenAI states that robots.txt rules may not apply to some ChatGPT-User requests because they are initiated by a person. Perplexity similarly says Perplexity-User generally ignores robots.txt. A rule can still record your preference, but private pages, paid content, and sensitive files require authentication, authorization, rate controls, or a web application firewall.
Blocking OAI-SearchBot, Claude-SearchBot, or PerplexityBot can reduce the chance that your pages appear or are cited in those providers' search experiences. Blocking CCBot also prevents inclusion in future Common Crawl collections, which may affect unknown downstream uses. Decide whether that trade-off matches your goal before publishing the full list.
For a less restrictive alternative, use the allow-search, block-training template. The blocking guide explains when robots.txt is sufficient and when server-side controls are required.
No. It covers a broad set of publicly documented tokens, but new agents, undeclared scrapers, user-initiated fetches, and AI features built on ordinary search indexes may require different controls.
Not by itself. The wildcard fallback remains open, and the template does not disallow Googlebot or Bingbot. Existing rules in your file can still change that result.
The groups record an explicit preference and may be honored by some providers, but they are not a substitute for authentication, authorization, rate limits, or WAF rules.
Your pages may be less likely to appear or be cited in ChatGPT search, Claude search, Perplexity, or downstream systems that use Common Crawl data.
Only if you intend to block nearly every compliant crawler, including ordinary search engines. It is usually too broad for a public site that still wants search visibility.
Allow Search, Block AI Training robots.txt TemplateUse separate user-agent groups: block documented training or dataset agents such as GPTBot and ClaudeBot, while allowing ordinary search and dedicated AI-search crawlers.
How to Block AI Crawlers with robots.txtTo block an AI crawler, add a group for its exact User-agent token and use Disallow: /. Block only the crawler purposes you intend to restrict, keep ordinary search crawlers open when visibility matters, and remember that robots.txt is a request to compliant bots rather than a security control.
How to Allow AI Search but Block AI TrainingUse separate User-agent groups for each purpose: allow AI search crawlers such as OAI-SearchBot and Claude-SearchBot, while disallowing training-oriented crawlers such as GPTBot and ClaudeBot. These controls are independent, so do not block an entire provider when your goal is only to opt out of training.
Robots.txt Checker for AI CrawlersEnter a domain, choose a crawler, and test a path. The checker downloads the live robots.txt file, finds the applicable User-agent group and most specific rule, then explains whether access is allowed or blocked.
AI Crawler ListThis directory groups crawler tokens by purpose so you can decide what to allow or block without treating every automated request as the same. Open a crawler page for its documented role, exact robots.txt token, policy trade-offs, and verification guidance.