Should You Block AI Bots from Your Website?
Blocking AI bots is a business and technical decision. Learn how to preserve search visibility, manage training preferences and enforce an effective crawler policy.
A website owner considering whether to block AI bots is not making one decision. The owner is making decisions about distribution, data reuse, infrastructure and access to information. A crawler that helps potential customers discover a product is economically different from one collecting articles for a training corpus. Neither is equivalent to an automated client repeatedly requesting expensive internal search pages.
For a new website competing for visibility, blocking every automated AI service may close distribution channels before their value can be measured. For an established publisher with a valuable archive, allowing every use without examining the terms can be an equally questionable decision. The practical objective is to separate the activities that serve the business from those that do not, then translate that distinction into controls that actually work.
This guide explains how to design, implement and audit such a policy. Provider-specific details are reviewed as of November 28, 2026. For the wider economic context, see our analysis of how AI crawlers are reshaping the web.
1. Define what you want to achieve before choosing a bot to block
Start by asking four questions. Do you want your public pages discovered through AI search? Are you willing for them to contribute to future model training? Should an assistant be able to retrieve them on behalf of an interested reader or customer? Finally, which resources should be inaccessible regardless of the client's identity?
The answers need not be consistent across all parts of a website. A software vendor may welcome retrieval of its product documentation while restricting a licensed technical dataset. A subscription publisher may encourage discovery of article abstracts but protect the full archive. An online retailer may want product pages fetched while excluding endless combinations of filters. A university repository may have an open-access policy for some works and contractual restrictions on others.
Build an inventory of resource classes rather than a list of URLs copied from an analytics dashboard. Include public editorial content, product pages, search and filter endpoints, downloads, licensed material, staging systems and authenticated areas. Record the desired outcome for each class. This makes later changes auditable: when a vendor introduces a new crawler, the team can evaluate it against an existing policy rather than improvising another site-wide block.
2. Do not treat every AI-related user agent as a training crawler
Providers increasingly distinguish automated discovery from model development and user-triggered retrieval. A policy targeting one purpose need not suppress another. The following table summarizes selected documented identities, not an exhaustive registry of bots or browser agents.
| Provider | Search discovery | Training or other AI use | User-directed retrieval |
|---|---|---|---|
| OpenAI | OAI-SearchBot | GPTBot | ChatGPT-User; robots.txt may not apply to user actions |
| Anthropic | Claude-SearchBot | ClaudeBot; shared training signal is being introduced | Claude-User; documented crawler restrictions apply |
| Perplexity | PerplexityBot | No training purpose assigned to these two listed identities | Perplexity-User; generally does not follow robots.txt |
| Googlebot; Search generative AI setting separately controls inclusion in relevant AI experiences | Google-Extended, a policy token rather than a separate HTTP user agent | Depends on the product and retrieval mechanism |
Provider references: OpenAI, Anthropic, Perplexity and Google.
There is a subtle but important operational difference between an identity in the HTTP User-Agent header and a policy token in robots.txt. An administrator who looks for requests carrying Google-Extended in access logs is looking for the wrong thing. Google can obtain content through its crawling infrastructure and apply a separate usage preference later. Counting HTTP requests therefore cannot establish that a particular downstream use has taken place.
Similarly, a user-triggered retrieval may not follow the same rules as routine background crawling. OpenAI explicitly distinguishes ChatGPT-User from the crawler used for search eligibility. Anthropic documents controls for Claude-User, whereas Perplexity says its user fetcher generally disregards robots.txt. Check the applicable documentation rather than extrapolating the behavior of one provider to another.
3. Choose a policy that matches the business model
| Website type | AI search | Model training | Primary safeguard |
|---|---|---|---|
| Ad-funded publisher | Allow selectively; monitor referral value | Consider declining or licensing | Protect original high-value assets |
| Subscription media | Allow public previews | Decide by rights and licensing policy | Server-enforced subscription access |
| B2B / SaaS | Generally allow product and public help pages | Evaluate separately | Keep customer data and private docs authenticated |
| E-commerce | Generally allow canonical product pages | Evaluate product-data rights | Limit duplicate filters and expensive endpoints |
| Open knowledge project | Generally allow | Follow the relevant licenses and contributor agreements | Preserve attribution and restricted collections |
Source: SEOsite editorial decision framework. These are recommendations, not measured industry adoption rates.
Publishers. An advertising-supported publication earns money when people visit its pages. Citations that never produce a visit may help brand recognition but are not equivalent to ad impressions. The decision should nevertheless be based on incremental business value, not on an assumption that every AI answer replaces a potential click. Keep discovery open where the publication wants an audience, and review the rights attached to original reporting, commissioned work and licensed photographs independently.
B2B software companies. A buyer may discover a vendor during research conducted in an assistant and visit the site later through a branded search or a direct link. That journey may not appear as an AI referral in analytics. Evaluate accurate product representation, qualified enquiries and assisted conversions alongside sessions. Maintain clear public specifications and documentation; restricting a customer-only support portal is a different decision.
Retailers. Product pages, availability and specifications are valuable discovery assets. Cart operations, account information and dynamically generated search combinations are not equally useful public resources. A narrowly targeted traffic policy may be more effective than a bot-wide ban. Restrict private operations through authorization and control resource-intensive requests at the application or edge.
Open knowledge projects. The technical ability to decline crawling does not resolve whether a project has already granted rights through an open license. Review the applicable terms before publishing contradictory restrictions. Conversely, a permissive robots.txt is not a universal license to reuse the underlying work. Technical signals should reflect the project's actual governance decisions.
4. Implement selective robots.txt rules
The Robots Exclusion Protocol (RFC 9309) provides a common way to publish crawler preferences. It operates at the relevant origin: scheme, hostname and port matter. A rule on a main domain should not be assumed to protect a documentation or staging subdomain.
Consider a public site that wishes to keep search discovery open, decline selected training uses and discourage crawling its internal search endpoint. The following is an illustrative configuration, not a complete replacement for an existing production file:
User-agent: *
Disallow: /search/
User-agent: OAI-SearchBot
User-agent: Claude-SearchBot
User-agent: PerplexityBot
Disallow: /search/
User-agent: GPTBot
User-agent: ClaudeBot
User-agent: Google-Extended
Disallow: /
Sitemap: https://example.com/sitemap.xml
The named search group repeats the internal search restriction because matching crawler-specific groups do not simply inherit the wildcard group's rules. A group may contain several User-agent declarations sharing the same directives. If matching groups occur more than once, compliant parsers combine their applicable rules. More specific path matches take precedence over broader ones; Google also documents its handling of equally specific rules in its robots.txt specification guide.
Before applying this example, replace the sitemap address and merge the rules with existing restrictions. For example, if the live site also restricts calendar URLs or faceted navigation, retain those restrictions in every relevant named group. Do not block CSS, image or script resources needed for search rendering merely because they are not editorial documents. The example does not guarantee an opt-out from every AI developer, nor does it address all Google or Perplexity products.
For a site that wants to decline training access to a particular collection rather than the entire domain, a narrower example is:
User-agent: GPTBot
User-agent: ClaudeBot
Disallow: /licensed-research/
Disallow: /search/
This replaces the relevant training groups in the previous example; it is not an additional group to append after a site-wide Disallow. If the research is confidential, use access control instead. A rule that identifies a directory may even draw attention to its existence.
5. Google requires a separate decision about search and training
As explained in Google's generative AI controls documentation, updated November 24, 2026, keeping a site in Search, participating in AI features and allowing specified uses outside Search are distinct choices. Google-Extended addresses model training and certain grounding uses in non-Search products. The Search Console generative AI control addresses inclusion in relevant Search and Discover AI features without itself changing ordinary Search ranking or eligibility.
For a publisher that wants normal Google search discovery but does not want the specified non-Search AI uses, the relevant robots.txt preference is:
User-agent: Google-Extended
Disallow: /
If that publisher also wants to decline participation in the applicable Search generative AI experiences, it should review the separate Search Console setting. Conversely, blocking Googlebot to avoid AI features can compromise conventional search discovery. Page-level preview and indexing controls are another layer, not interchangeable substitutes for a training preference. Evaluate the possible loss of snippets and visibility before deploying restrictive preview directives across the entire website.
6. A shared training preference is emerging, but is not a universal switch
The November 2026 Internet-Draft on machine-readable training preferences proposes a purpose-specific policy token within robots.txt:
User-agent: __usage_ai-training
Disallow: /
The intent is to let website operators express a preference about training independently of the name of a particular crawler. This is a promising direction for administrators who otherwise need to maintain long lists of vendors. The draft is not a finalized RFC, however, and a crawler that does not implement it cannot be assumed to honor it.
Anthropic announced on October 30, 2026 that it had begun introducing recognition of the signal, with deployment across its services proceeding over time. Its directly named ClaudeBot rules take precedence over the general preference. Google has announced intended support and states that implementation is planned for early 2027. As of this article's review date, retain necessary vendor-specific controls and check for changes rather than substituting a single new token for the established policy.
7. Separate cooperative crawler rules from actual access enforcement
A successful robots.txt audit does not demonstrate that a resource is private or that unauthorized traffic has stopped. The protocol requests cooperation. It neither authenticates an HTTP client nor removes a document already collected elsewhere. If data must be restricted, apply authorization at the server or application and review cache configuration to prevent private responses becoming public.
| Objective | Appropriate control | What not to assume |
|---|---|---|
| Keep private data private | Authentication and resource-level authorization | robots.txt makes the content confidential |
| Decline documented training use | Provider-specific or supported shared preference | Previously trained models are retroactively changed |
| Remove a public page from Google Search | Readable noindex directive, or genuine removal / access restriction as appropriate | Disallow automatically deindexes the URL |
| Limit abusive requests | Rate limits, bot verification and server or edge rules | All clients identify themselves honestly |
| Manage AI answer participation | Relevant provider search controls | Every provider uses the same setting |
Google explains in its Search technical requirements that a blocked URL can still be known through links. For a public page intended to be excluded with noindex, Google must be able to read the directive. For a permanently removed document, return the appropriate real removal status instead of serving an error message with a successful status. Do not temporarily expose confidential content to allow a robot to read noindex.
At the edge, services such as Cloudflare AI Crawl Control offer provider-level decisions and traffic enforcement. Review the interaction with firewall rules, cache behavior and bot management before enabling a global block. A CDN may successfully deliver robots.txt while returning an access challenge to every article request, or it may prevent the crawler from obtaining the policy in the first place.
8. Measure infrastructure cost before imposing a broad ban
Consider an illustrative public site receiving 100,000 verified AI crawler requests per month. Suppose 80,000 are served from an edge cache and 20,000 require origin processing. If each origin response uses an average of 150 milliseconds of CPU time, origin processing accounts for roughly 3,000 CPU-seconds, or 0.83 CPU-hours. If each uncached response transfers 250 KB, the origin sends approximately 5 GB of response bodies in a month (decimal units).
Now suppose a change to the public caching configuration increases the cache hit rate to 95% without changing demand or the average origin response size and CPU cost. Only 5,000 requests reach the origin: about 0.21 CPU-hours and 1.25 GB of origin response traffic. In this simplified example, origin work falls by 75% without shutting off discovery. Edge-to-client traffic, cache revalidation, storage, request charges and peak concurrency still matter and are excluded from the calculation.
View underlying data
| Metric | 80% cache hit rate | 95% cache hit rate |
|---|---|---|
| Total requests | 100,000 | 100,000 |
| Origin requests | 20,000 | 5,000 |
| Origin CPU-hours | 0.83 | 0.21 |
| Origin response traffic | 5 GB | 1.25 GB |
SEOsite illustrative arithmetic. Assumptions: 150 ms CPU time and 250 KB response body per origin request. Origin traffic only.
The lesson is not that crawler traffic is cheap. A small number of expensive faceted queries can cost more than thousands of cached article requests. Inspect origin latency, CPU consumption, database workload and peak traffic together. Do not cache private responses or personalized pages indiscriminately to improve the hit rate. Where necessary, restrict expensive routes or set conservative rate limits while keeping important public pages available.
9. Audit and deploy the policy in stages
Start with a baseline of at least a representative business cycle. Record verified crawler requests, edge and origin status codes, cache hits, resource consumption, search visibility and conversion indicators. Retain aggregates rather than unnecessary personal identifiers. User-Agent text alone is not proof of identity: use published IP ranges or the provider's supported verification method. Google, for example, documents verification using address ranges or DNS checks in its Googlebot guide.
Before deployment, save the live robots.txt and its associated CDN settings. List expected results for a handful of canonical articles, restricted routes, files and alternate hosts. The following commands show basic diagnostic requests against a placeholder domain:
curl -i https://example.com/robots.txt
curl -i -A 'OAI-SearchBot' https://example.com/article/
curl -i -A 'GPTBot' https://example.com/article/
These commands check what the server delivers to a request with a particular header. They do not impersonate a verified provider, simulate the provider's full infrastructure, or demonstrate that the crawler has interpreted robots.txt correctly. A cooperative bot may choose never to request a disallowed resource; a manual curl request can still return 200. A correctly configured firewall may also reject a test request because it does not originate from the provider's real network.
Use the SEOsite Robots.txt Tester to inspect the policy file, and the Redirect Checker to investigate unexpected routing. Review the raw status, response body, encoding and any redirects from the robots.txt endpoint. Avoid treating all errors as a safe default: the protocol distinguishes unavailable and unreachable files, and Google's implementation handles particular HTTP failures and caching in its own documented way. A successful response should deliver the policy as plain text, not an HTML login page or a security challenge.
Change one policy dimension at a time where possible. Check that the intended public pages remain accessible, and monitor crawler activity after caches have had an opportunity to refresh. OpenAI documents an adjustment period of roughly a day for its search crawler; Google's robots.txt caching can extend when refreshes fail. Neither figure guarantees an immediate change to the answers users see. Maintain a rollback file and record what changed, when, and why.
10. Decide whether the policy is working
After deployment, distinguish compliance from business outcomes. Fewer requests from a named training crawler may indicate that the access preference is being observed; it does not prove that a future model has excluded all copies of your text. Continued search citations may indicate preserved visibility, but they do not establish that the policy improved ranking. A rise in direct traffic could have many causes.
Review the policy against the original business objective. For an editorial site, useful measures include referral sessions, citation presence in a stable set of queries, returning readership, advertising revenue and origin cost. A SaaS business may prioritize qualified leads, documentation discovery and accurate descriptions of product capabilities. Our analysis of GEO versus SEO discusses how to distinguish a measured change in visibility from the wider evolution of search systems.
Revisit the decision when your content licensing changes, when a provider introduces a different access mechanism, or when the volume and economics of automated requests materially change. Maintain an internal record of approved resource classes, provider preferences and operational restrictions. The record should survive staff changes and prevent future developers from removing a carefully designed policy during a routine migration.
Conclusion: keep useful discovery open and protect what needs protection
There is no universal answer to whether AI bots should be blocked. The sensible default for a public website seeking an audience is to preserve valuable discovery while evaluating training preferences independently. Protect restricted resources at the application level, manage load at the infrastructure level and express downstream usage preferences through documented mechanisms. For sites with significant licensed or original content, consider the economic and contractual implications rather than assuming that openness or blocking is automatically beneficial.
The best crawler policy is not the longest robots.txt file. It is a documented decision that the business understands, that the technical team can test, and that can be revised when the evidence changes.