Blocking AI crawlers is easy. Blocking the right ones without hurting discovery is harder. The user-agent list keeps growing, each platform uses different names, and robots.txt is only a request. Before adding a blanket Disallow, decide what the business wants: citations and referrals, training access, both, or neither.
This guide explains the main crawler names, how robots.txt and CDN controls interact, and a decision framework you can defend.
The crawler names that matter
User-agent names change and new ones appear. Treat this table as a starting point and verify the current documentation for each provider before making a policy change.
| User agent | Typical purpose | What to check |
|---|---|---|
| GPTBot | OpenAI crawler used for model training and some product features | OpenAI's current documentation and your training policy |
| OAI-SearchBot | OpenAI search-related crawling for answer products | Whether you want pages eligible for live search answers |
| ChatGPT-User | Requests triggered by a user's browsing action | Whether user-initiated visits should be treated differently |
| ClaudeBot | Anthropic crawler for model development | Training and product access policy |
| PerplexityBot | Perplexity's search and answer retrieval | Whether you want citations in Perplexity answers |
| Google-Extended | Controls Google's use of content for Gemini and related generative products | That this is separate from Google Search access |
| CCBot | Common Crawl crawler used by many downstream projects | Whether open-web training access is acceptable |
| Bytespider | ByteDance crawler associated with AI and product surfaces | Traffic quality, rate limits, and policy |
Do not assume every bot with "AI" in the name is the same. A search crawler that produces citations is not identical to a training crawler that never sends a click.
robots.txt is a request, not a wall
A robots.txt rule tells well-behaved crawlers what they may access. It does not authenticate the crawler, enforce rate limits, or stop a client that ignores the file. If access control matters, use a CDN, WAF, or origin rule as the enforcement layer.
The basic syntax is the same as for search crawlers:
User-agent: GPTBot Disallow: / User-agent: PerplexityBot Allow: / Disallow: /admin/ Disallow: /account/
Be careful with wildcard and path rules. A rule that blocks query strings can remove pagination or search pages; a rule that blocks /blog/ removes the exact content you want cited. Test with a robots.txt validator and a real request from the relevant user agent where possible.
For the fundamentals, see the robots.txt guide. For discovery, the XML sitemap guide covers the URLs you actually want indexed.
Google Search vs Google-Extended
Blocking Google-Extended does not remove a site from Google Search. It controls Google's use of content for certain generative AI products. That separation is useful, but it is also easy to misunderstand. If your goal is normal Search visibility, do not block Googlebot. If your goal is to limit generative training use while keeping Search, review the current Google-Extended documentation before acting.
AI Overviews are part of Google Search and are not controlled by a simple "block AI" switch. The AI Overviews guide covers that layer.
CDN and WAF bot protection
Many sites block AI crawlers at the edge without realizing it. Common causes:
- A managed bot-fight rule that challenges "known bots" by default.
- A rate-limit rule that treats a crawler like a scraper.
- A firewall rule that blocks data-center IP ranges.
- A JavaScript challenge that a non-browser crawler cannot complete.
- A privacy or security plugin that adds a blanket user-agent block.
Check the edge logs, not just robots.txt. If the crawler is challenged with a 403 or a CAPTCHA, the page is effectively blocked even if robots.txt says allow.
If you want to allow a crawler, verify the provider's published IP ranges where available, create an explicit allow rule, and monitor origin logs. Do not rely on user-agent strings alone for security; they are easy to spoof.
Decide by content type, not just bot
A single allow/block decision for the whole site is rarely right. Consider a matrix:
| Content | Allow citation crawlers? | Allow training crawlers? | Notes |
|---|---|---|---|
| Public guides and research | Yes | Case by case | Primary citation surface |
| Product and pricing pages | Yes | Case by case | Needed for accurate answers |
| Customer stories | Yes, if public | Case by case | Check customer consent |
| Account and admin pages | No | No | Private and irrelevant |
| Gated reports | No | No | Access-controlled content |
| Staging and duplicate URLs | No | No | Keep out of discovery |
Document the policy in plain language: which crawlers are allowed, which are blocked, who owns the decision, and when it will be reviewed. A policy that lives only in a firewall dashboard is hard to defend when traffic changes.
Test what actually reaches the origin
After changing robots.txt or edge rules, test from the outside:
- Fetch
/robots.txtand confirm the rule is present and syntactically valid. - Request a representative page with the crawler's user agent and inspect the status code.
- Check whether a CDN challenge, login redirect, or JavaScript gate appears.
- Review origin logs for the crawler's IP range and request path.
- Confirm the page still returns 200 for normal users and Googlebot.
A page that returns 200 in a browser can still return 403 to a crawler. Test the actual path, not just the marketing page.
Monitor the impact
Track three layers:
- Access: crawler requests, status codes, and blocked paths in logs.
- Citations: whether your URLs appear in AI answers for a fixed prompt set.
- Business: referral sessions, branded search, and conversions from AI surfaces.
If you block a crawler, expect fewer citations from that surface, not necessarily a Search penalty. If you allow one, expect more requests and possibly more scraping. Neither outcome is automatically good; it depends on the strategy.
The AI search visibility guide covers citation-friendly content, and the citation tracking guide shows how to measure the result.
Common mistakes
Blocking all AI bots because of a headline. Training, search retrieval, and user-initiated browsing are different. Decide what you actually want.
Blocking at the CDN and forgetting robots.txt. The two layers should agree, or your policy is confusing and hard to audit.
Allowing everything by default. Public content is not automatically safe to train on, especially customer stories, images, or proprietary research.
Using robots.txt as security. It is not authentication. Use real access controls for private content.
Not testing after a change. A typo in a user-agent line can block the wrong crawler or nothing at all.
If you publish an llms.txt file, remember that it does not override robots.txt or a WAF. It is a map, not a permission system.
A policy review checklist
- List every AI crawler that matters to your category.
- Map each crawler to a business purpose: citations, training, user browsing, or none.
- Decide per content type, not just per bot.
- Implement the policy in robots.txt and at the edge.
- Document the owner and review date.
- Test status codes with real user agents.
- Monitor citations and referrals for one month before changing again.
Frequently asked questions
Does blocking GPTBot hurt Google rankings?
GPTBot is an OpenAI crawler, not Googlebot. Blocking it should not directly affect Google Search, but it can remove your pages from OpenAI surfaces. Decide based on your AI strategy.
Is robots.txt enough to block AI crawlers?
No. It is a request. Use CDN, WAF, or origin controls if you need enforcement. Test what actually reaches the page.
Should I allow PerplexityBot?
If you want Perplexity citations and referral traffic, allowing it is usually the starting point. If you have licensing or content-protection concerns, define the policy and enforce it consistently.
Does Google-Extended affect AI Overviews?
Google-Extended controls certain generative AI uses, not normal Google Search access. AI Overviews are part of Search and are not controlled by a simple block switch.