keepcalculator

06 Numbers and Powers

Robots.txt and AI Use: What the Two Choices Mean

Card No. 06·24788 · Updated · Standard formula, shown below

Not exactly: robots.txt does not create two universal choices called “search access” and “AI use.” It is a set of crawl instructions that website operators can use to allow or discourage particular automated agents, including search crawlers and some AI-related crawlers, but its effect depends on the crawler and does not itself control every way content can be accessed or used.

What robots.txt does

A robots.txt file is a plain-text file published at a website’s top-level path, such as https://example.com/robots.txt. It communicates instructions to crawlers that choose to follow the Robots Exclusion Protocol. A site can use it to say which paths a named crawler may or may not request.

For example, a basic rule might look like this:

User-agent: ExampleBot
Disallow: /private-area/

Here, User-agent names the crawler and Disallow identifies a path it is asked not to crawl. This is not a password or access-control mechanism: people and non-compliant bots may still request the URL. Sensitive material should be protected with authentication or other access controls, not hidden with robots.txt.

Why people talk about search and AI choices

Some AI companies identify separate crawlers for different purposes. One crawler may gather or refresh pages for search results, while another may collect material for model training or other AI services. A site operator may therefore want search engines to find a page while asking a particular training crawler not to fetch it.

That distinction is real for services whose operators document separate crawler names and purposes. It is not a standard two-switch feature built into robots.txt. Each crawler’s published documentation determines which agent name to use and what that crawler does. Names and policies can change, so check the operator’s current documentation rather than copying an old rule from another site.

Also, “AI use” is broad. It can refer to training, retrieval, search, answering a user’s question, or fetching a page on demand. A robots.txt rule only speaks to crawlers that recognize and honor the relevant instruction; it does not reliably distinguish every downstream use of content.

How rules are read

Rules are grouped by crawler. A group begins with a User-agent line and can contain one or more Disallow or Allow directives. A wildcard user-agent group applies to crawlers that do not have a more specific matching group, according to the crawler’s implementation. For example:

User-agent: *
Disallow: /drafts/

User-agent: SearchBot
Disallow:

User-agent: TrainingBot
Disallow: /

This example asks general crawlers not to crawl /drafts/, gives the specifically named SearchBot an empty disallow rule, and asks TrainingBot not to crawl any path. It is illustrative only: the agent names must match actual crawler documentation, and rule precedence and supported syntax can vary in details between implementations.

Robots rules are about crawling, not a guarantee that a page will or will not appear in search. A URL can sometimes be known from links even when its content is not crawled. Conversely, allowing a crawler does not guarantee indexing, ranking, or inclusion in an AI product.

How to choose what to allow

Start with the outcome you want, then identify the relevant crawler. If you want a page available to search engines but want to discourage a named AI training crawler, use the search engine’s documented agent and the AI operator’s documented agent in separate groups, where that distinction is supported. Do not assume that blocking one AI-related crawler blocks all AI services.

  • List the pages or directories that should be crawled, rather than blocking the entire site by default.
  • Look up the exact user-agent names and stated purposes in each operator’s current documentation.
  • Use separate groups for different agents when their permitted access should differ.
  • Test the file for syntax and confirm it is served from the correct host and protocol.
  • Use authentication or server permissions for material that must remain private.

A rule for one host does not automatically govern another. For example, www.example.com/robots.txt and shop.example.com/robots.txt are separate files for their respective hosts. A site using several subdomains should review each one.

Common mistakes and limitations

The most consequential mistake is treating Disallow as a way to remove a page from search or keep it secret. The directive asks a compliant crawler not to fetch a path; it does not delete copies already collected, prevent access, or ensure that the URL disappears from results. Search engines provide separate removal and indexing controls, and their handling is not identical.

Another mistake is blocking resources needed to understand a page, such as scripts or stylesheets, without considering the effect. Search crawlers may need those resources to render pages. Broad rules such as Disallow: / can stop crawling across the whole host for agents that honor them, so check carefully before publishing.

Robots.txt is public. Anyone can read it, and its path names can reveal how a site is organized. It is not a place to store secrets. Nor does a robots instruction settle copyright, licensing, privacy, or other questions about content; those are separate matters.

Alternatives and related controls

If the goal is to keep content inaccessible, use access controls such as sign-in requirements or server-side restrictions. If the goal is to tell search engines not to index a page, a page-level noindex directive may be relevant, but a crawler generally needs to fetch the page to see it. Blocking that page in robots.txt can prevent the crawler from seeing the directive.

Some platforms offer additional controls for particular AI services, and some services recognize other site signals. These are not universal replacements for robots.txt. Verify what a service supports, what its signal means, and whether it concerns crawling, training, or another use before relying on it.

Frequently Asked Questions

Does robots.txt have separate settings for search and AI?
Not as universal built-in settings. You can write different rules for distinct crawler names, if the operators identify separate agents and honor those rules.

Does blocking an AI crawler stop it from using my content?
It asks that crawler not to fetch the disallowed paths. It does not guarantee that all AI services, other crawlers, existing copies, or human visitors are prevented from accessing the material.

Will a robots.txt block remove a page from Google or another search engine?
Not necessarily. Blocking crawling is different from removing a URL from an index; a URL may remain known through links or earlier crawling. Use the relevant search engine’s indexing or removal guidance for that goal.

Can robots.txt protect private files?
No. It is publicly readable and is only a request to compliant crawlers. Protect private files with authentication and server-side access restrictions.

Where should robots.txt be placed?
At the root of the relevant host, such as https://example.com/robots.txt. Separate hosts and subdomains may need their own files.

Related

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.

More cards in this drawer

The whole Numbers and Powers drawer →