# What is robots.txt and how does it affect AI crawlers?

Robots.txt is a plain-text file at a site's root that tells crawlers, including AI crawlers, which paths they may visit, and following it is voluntary.

Robots.txt is a plain-text file at a website's root that tells automated crawlers which paths they may or may not visit, using the Robots Exclusion Protocol (RFC 9309). It affects AI crawlers because well-behaved bots check it before fetching pages. Compliance is voluntary, though, so it signals intent and does not enforce access control.

## How the Robots Exclusion Protocol works

Since 1994, sites have published their crawling preferences at one well-known location: `/robots.txt` at the root of the host. The format, standardized in 2022 as RFC 9309, is a list of rule groups. Each group names a `User-agent` (a specific bot, or `*` for all) and gives it `Disallow` and `Allow` rules for URL paths. `Sitemap` lines and a `Crawl-delay` hint are common additions. They are not part of the RFC, and not every crawler honors `Crawl-delay`.

Two properties define the protocol. First, it is advisory: nothing technical prevents a crawler from ignoring it. Reputable operators comply, but robots.txt is a "no trespassing" sign, not a lock, and anything truly private needs authentication. Second, it governs crawling, not indexing or use. A disallowed URL can still appear in an index if other pages link to it, and what may be done with fetched content is a separate question of policy and law.

## What changed with AI crawlers

For decades the main audience was search engine crawlers. AI added new kinds of automated visitor: collectors of training data, retrieval bots that fetch pages to answer a user's question, and agents that browse on a user's behalf. Publishers responded by addressing them by name. Operators of AI crawlers publish the user-agent names their bots use, and some offer a separate name that controls use for AI training apart from search crawling.

This lets a site welcome search crawlers while opting out of AI training, or the reverse. The rules a [website crawler](https://millionshort.com/docs/glossary/what-is-a-website-crawler) must read before fetching have become, in effect, where a site states its AI policy. Whether a given bot honors them is up to its operator, so check each operator's own documentation for the current names and behavior.

A related proposal, [llms.txt](https://millionshort.com/docs/glossary/what-is-llms-txt), does the opposite job: it tells language models what on a site is worth reading.

## What it means for services that fetch pages

A service that fetches pages for you inherits the compliance question, and a well-behaved one honors the file instead of working around it. When you evaluate a scraping or extraction service, ask how it identifies itself, whether it reads robots.txt, and what it returns when a page is disallowed. A clear, machine-readable refusal is more useful to a pipeline than content a publisher asked crawlers not to take.

## Where MillionShort fits

MillionShort is a search API on our own independent index. A search call reads the index and returns snippets. It does not fetch the result pages at the time of your request. [Extract](https://millionshort.com/docs/extract/parameters), which fetches a URL you name and returns clean text, identifies itself to sites as `MillionShortBot` and honours robots.txt in every mode, with no option to ignore it.
