Snippet builder

robots.txt for AI bots.

Use these examples as a starting point, not as a permanent truth. User-agent names, products and crawler behavior change, so always check official pages before deploying.

Static tool

Build a cautious robots.txt starter snippet.

Select the crawlers you want to request not to crawl. This generator runs in your browser only. It does not send data anywhere. Before deploying, verify the current official user-agent names.

# AI crawler controls: verify current user-agent names before deploying.
# This is voluntary. robots.txt is not a legal lock.

User-agent: GPTBot
Disallow: /

User-agent: Google-Extended
Disallow: /

User-agent: ClaudeBot
Disallow: /

User-agent: PerplexityBot
Disallow: /

User-agent: CCBot
Disallow: /

Warning: blocking user-triggered or search-related agents can reduce AI-assisted discovery, previews or citations.

Copy-paste block

An example robots.txt for common AI user-agents.

Below is a starter block covering several AI-related crawlers. User-agent names change and vary by product, so treat this as a template and verify each name against the operator's official documentation before you deploy it.

# Example only. Verify every user-agent name against official docs.
# robots.txt is voluntary. It does not remove copies that already exist,
# and it only affects crawlers that choose to obey it.

User-agent: GPTBot
Disallow: /

User-agent: Google-Extended
Disallow: /

User-agent: CCBot
Disallow: /

User-agent: ClaudeBot
Disallow: /

User-agent: anthropic-ai
Disallow: /

User-agent: PerplexityBot
Disallow: /

User-agent: Bytespider
Disallow: /

User-agent: Applebot-Extended
Disallow: /
User-agent (verify)Associated withTypically used for
GPTBotOpenAICrawling web content that may be used for model training
Google-ExtendedGoogleA control token to limit use of content for certain AI products
CCBotCommon CrawlBuilding the open Common Crawl archive used by many downstream datasets
ClaudeBot / anthropic-aiAnthropicCrawling related to Claude; verify current tokens in Anthropic docs
PerplexityBotPerplexityCrawling for its answer and search features
BytespiderByteDanceBroad crawling associated with ByteDance products
Applebot-ExtendedAppleA control token to limit use of content for Apple AI training

Some of these are true crawler user-agents and others are control tokens rather than bots that fetch pages. Names, meanings and behavior change, so confirm each one on the operator's official documentation before relying on it.

What it does not do

robots.txt is voluntary and limited.

It is a request, not a lock

robots.txt is a convention. Well-behaved crawlers read it and comply, but it is not enforced by the web itself. A crawler that ignores it, or that is not on your list, can still fetch public pages. It is a signal of intent, not a technical barrier.

It does not remove existing copies

Adding a disallow rule today does nothing about content that was already crawled, cached, archived or copied elsewhere. Nor does it affect data people paste into AI tools by hand. Think of it as reducing future exposure, not undoing the past.

Stronger layers

Alternatives and complements.

WAF and firewall rules

A web application firewall or server rule can actually block or challenge requests by user-agent, IP range or behavior, rather than just asking politely. This is enforcement rather than a request, though it needs maintenance as crawler identities change and can occasionally catch legitimate visitors.

Meta tags and headers

Page-level directives such as a noindex robots meta tag or X-Robots-Tag header influence how compliant crawlers treat a page. Like robots.txt, they rely on cooperation and do not stop a crawler that ignores them.

Network and access controls

Requiring a login, rate-limiting, or putting sensitive material behind authentication keeps it off open, crawlable pages entirely. Gating access is usually far more reliable than any voluntary text file for content that truly must stay private.

Verify it works

How to check your robots.txt.

  1. Load https://yourdomain.com/robots.txt directly in a browser and confirm the file is served correctly at the site root.
  2. Check for typos in user-agent names and directives; a misspelled token simply does nothing.
  3. Use a robots.txt tester or your search console tooling to confirm the syntax parses as you expect.
  4. Review server logs over time to see whether the user-agents you targeted still appear, remembering that names change and some agents ignore the file.
  5. Re-verify names periodically against each operator's official documentation, since crawler identities and control tokens are updated regularly.

This page is educational information, not legal advice, and user-agent names shown here may be out of date. Always confirm the current tokens and behavior on the operator's official documentation before relying on them.

Related reading

Next steps.

ModelVersus modelversus.com

Compare AI models before choosing a workflow.

ChatGPT Alternatives chatgpt-alternatives.com

Find neutral alternatives when one AI provider is not enough.

AI Subscription Guide aisubscriptionguide.com

Learn which AI subscription fits your real work.

OpenAI crawler docs platform.openai.com/docs/gptbot

Check the current OpenAI crawler and user-agent guidance.

Google crawler docs developers.google.com/search/docs/crawling-indexing/overview-google-crawlers

Verify Google crawler names, indexing behavior and AI-related controls.

Anthropic support support.anthropic.com/

Check current Claude account, data and crawler guidance.

FAQ

Common doubts.

Can I stop AI training on my personal photos?

You can reduce exposure, but you cannot guarantee full control once photos are public. Keep sensitive photos private, review platform settings, avoid public high-resolution uploads and use crawler controls for your own website.

Should I paste my CV or resume into an AI chatbot?

Only after removing details you do not need for the task. Names, addresses, phone numbers, birth dates, signatures, employer secrets and references can often be replaced with placeholders.

Can I upload family documents to AI?

Be careful. Medical letters, passports, school documents, legal papers, bank files and family records can contain sensitive data about other people. Use approved privacy settings or do not upload them.

Do private prompts become AI training data?

It depends on the product, account type and settings. Some providers offer controls, team plans or API terms that treat data differently. Check the current settings before typing sensitive information.

Can I completely stop AI companies from training on my website?

Not with one technical switch. robots.txt can request that compliant crawlers stay away, but it is voluntary and does not remove copies that already exist elsewhere.

Does robots.txt legally block AI training?

robots.txt is a technical convention, not a contract by itself. It can support your policy position, but legal questions depend on jurisdiction, terms, copyright, contracts and enforcement.