# Robots.txt

> For the complete documentation index, see [llms.txt](https://attensira.com/llms.txt).
> Every page on this site is also served as Markdown: append `.md` to any URL, or send `Accept: text/markdown`.

> Robots.txt is the file that tells crawlers what they may fetch. How it works, how AI training and AI search crawlers are allowed separately, and our own file.

- Canonical page: https://attensira.com/glossary/robots-txt
- Family: glossary
- Last updated: 2026-10-04
- Author: Karl-Gustav Kallasmaa (https://attensira.com/about)
- Claims as data: https://attensira.com/claims.json?slug=robots-txt

**In short:** Robots.txt is a text file at a site's root that tells crawlers which paths they may fetch, one group of rules per user agent. It is a request, not a lock. In AI search it is where you decide, crawler by crawler, whether a model may train on your pages and an engine may cite them.

**ChatGPT, asked 2026-10-04:** "how to block AI crawlers in robots.txt"

> Add Disallow rules for the AI crawlers you want to block in your site's /robots.txt. These are separate controls: for example, blocking GPTBot prevents OpenAI's training crawler from accessing your site, while OAI-SearchBot controls whether your pages can be surfaced in ChatGPT search. One important caveat: robots.txt is an instruction, not an access-control mechanism.

Sources cited, in order: developers.openai.com, developers.google.com.

Attensira: not named.

_Source: attensira.com workspace, read over the Attensira MCP, as of 2026-10-04 (1 stored answer, ChatGPT, 2026-10-04)._

## Key facts

- Also known as: The Robots Exclusion Protocol, RFC 9309
- Where it lives: /robots.txt at the root of each host
- Controls: [Crawling, not indexing: that is noindex](/glossary/x-robots-tag)
- Takes effect: Within about a day; cached copies last up to 24 hours
- Declares: [Your sitemaps, in a Sitemap: line](/glossary/xml-sitemaps)
- In Attensira: [A file the crew may edit, by pull request you approve](https://docs.attensira.com/agent/approval)

Robots.txt is the oldest instruction a site gives a machine: a text file at `/robots.txt` that says which crawler may fetch what. For twenty years it mostly concerned search engines. Now it is also where a site decides how it deals with AI, crawler by crawler, and the decisions are easy to get wrong because one company can run several crawlers with different jobs.

## How does robots.txt work?

The file is a list of groups. Each group names one or more user-agent tokens, then the paths that are allowed or disallowed for them. A crawler uses the most specific group that names it and falls back to `User-agent: *` if none does. Within a group the longest matching path wins.

The rules were standardised in 2022 as RFC 9309, the Robots Exclusion Protocol. It asks crawlers to parse at least the first 500 kibibytes, to follow at least five redirects to reach the file, and not to trust a cached copy for more than 24 hours. That last rule is why a change is not instant.

Two limits matter more than the syntax:

- **It is a request.** Nothing in the protocol stops a fetch. Reputable operators publish that they honour it; enforcement needs your server or CDN.

- **It controls crawling, not indexing.** A blocked URL can still appear in search results if other pages link to it. Keeping a page out of an index is the job of a `noindex` rule, in the page or in an [X-Robots-Tag](/glossary/x-robots-tag) header, and the crawler has to be allowed in to read it.

## What does a real AI-era robots.txt look like?

Here is part of ours, as attensira.com serves it from this site's code on 4 October 2026. It has 34 groups and is 1,743 bytes long:

```text
User-agent: GPTBot
Allow: /
Disallow: /api/

User-agent: OAI-SearchBot
Allow: /
Disallow: /api/

User-agent: ClaudeBot
Allow: /
Disallow: /api/

User-agent: CCBot
Disallow: /

User-agent: AhrefsBot
Disallow: /

Sitemap: https://attensira.com/sitemap-index.xml
```

Every AI search, answer and training crawler gets its own group and is allowed everywhere except the API. Three crawlers are shut out completely: Common Crawl's CCBot and two SEO-tool crawlers. The last line points crawlers at the [sitemap](/glossary/xml-sitemaps). Naming each crawler, rather than relying on `*`, means a later rule for one of them cannot accidentally change the rest.

A file says who may come; only the edge says who came. Attensira counts crawler requests in edge middleware, because crawlers run no JavaScript, and labels each by the user agent it claimed. Any client can claim any name, so our own counts, 143,601 AI-crawler requests in the 30 days to 4 October 2026, are directional, not verified.

## Who did our robots.txt actually let in?

Every AI crawler below is allowed everywhere except /api/; CCBot is shut out. In the 30 days to 4 October 2026, one Meta crawler, Meta-ExternalAgent, made nine in ten of the 143,601 requests; Meta documents it for training or indexing content directly. Rows are labelled by the user agent each request claimed, and none was IP-verified.

**attensira.com · robots.txt rule and AI-crawler requests · 30 days**

| User agent claimed | Our rule | Requests |
| --- | --- | --- |
| Meta-ExternalAgent | Allow, except /api/ | 131,105 |
| GPTBot, OAI-SearchBot, ChatGPT-User | Allow, except /api/ | 7,536 |
| Bytespider | Allow, except /api/ | 3,505 |
| PerplexityBot | Allow, except /api/ | 621 |
| bingbot | Allow, except /api/ | 541 |
| Googlebot | Allow, except /api/ | 189 |
| ClaudeBot, Claude-User | Allow, except /api/ | 104 |
| CCBot | Disallow: / | none recorded |

_Source: attensira.com AI traffic, by the user agent each request claimed, Attensira MCP, as of 2026-10-04 (n=143,601 requests, 5 Sep to 4 Oct 2026)._

## How do you allow AI search but block AI training?

Write separate groups for each operator's crawlers. OpenAI documents GPTBot for training, OAI-SearchBot for surfacing sites in ChatGPT search and ChatGPT-User for fetches a person triggers. Disallowing GPTBot asks OpenAI not to train on the pages; disallowing OAI-SearchBot removes them from ChatGPT search answers. Anthropic, Perplexity and Google split their crawlers the same way, under different names. Google's training opt-out, Google-Extended, is a robots.txt token only; Google's AI Overviews are fed by ordinary Googlebot.

Across the web, sites block training more than search. In [Attensira's study of the top 10,000 Tranco domains](/data/ai-crawler-robots-access), run on 3 September 2026 over 8,036 robots.txt files, 14.3% blocked GPTBot at the root, against 5.8% for OAI-SearchBot and 1.9% for Googlebot. Common Crawl's CCBot, a training-data crawler, was the most blocked of all at 15.1%.

## How often do sites split OpenAI's crawlers?

Often enough to show the split is deliberate. Across 8,036 readable robots.txt files among the top 10,000 Tranco domains, GPTBot was blocked at the root more than twice as often as OAI-SearchBot. Plain Googlebot, which also feeds Google's AI Overviews, was almost never blocked.

| Figure | What it counts | n |
| --- | --- | --- |
| 14.3% | blocked GPTBot, OpenAI's training crawler, at the root | 1,147 of 8,036 files |
| 7.1% | blocked ChatGPT-User, the fetcher a person triggers | 573 of 8,036 files |
| 5.8% | blocked OAI-SearchBot, which puts sites in ChatGPT search | 467 of 8,036 files |
| 1.9% | blocked Googlebot | 156 of 8,036 files |

Window 2026-09-03 to 2026-09-03. Attensira's AI crawler robots.txt study, top 10,000 Tranco domains.

_Source: Attensira study, top 10,000 Tranco domains, /data/ai-crawler-robots-access, as of 2026-09-03 (8,036 robots.txt files read)._

## What mistakes cost sites their AI citations?

- **A blanket block written for training.** `Disallow: /` under a rule that also matches the search crawler removes you from answers as a side effect.

- **Blocking a crawler you meant to throttle.** Rate problems belong in your server or CDN, not in a disallow.

- **Blocking CSS and JavaScript paths** that a renderer needs to see the page.

- **Expecting an instant effect.** Allow a day for any change to reach the operators.

- **Assuming robots.txt is the whole story.** CDN bot rules and firewalls block crawlers without a line in robots.txt, which is why a file that says "allowed" overstates real access.

## How does Attensira help with robots.txt?

Attensira is the service of an SEO agency at the price of a tool, and for robots.txt that means two things. The free [robots.txt generator](/tools/robots-generator) builds a file with a rule for each AI crawler, starting from "allow the ones that can cite you, block the ones that only train". In a workspace, the crew's web engineer reads your crawler logs and your robots rules, and when a rule is costing you answers it proposes the fix as a pull request; `robots.txt` at the root is one of the files it may edit, and nothing merges without your approval. The [AI crawler guide](/guides/ai-crawler-guide) covers each operator's crawlers in full.

## FAQ

### What is robots.txt?

A text file served at /robots.txt that lists, for each crawler by its user-agent token, which paths it may and may not fetch. It was standardised as RFC 9309, the Robots Exclusion Protocol, in September 2022. Crawlers read it before fetching anything else on the host.

### Does blocking GPTBot remove my site from ChatGPT search?

No. OpenAI documents GPTBot as its training crawler and OAI-SearchBot as the crawler that surfaces sites in ChatGPT's search features. Blocking GPTBot asks OpenAI not to train on your pages; blocking OAI-SearchBot removes you from ChatGPT search answers. They are separate rules.

### Does robots.txt stop a crawler from fetching my pages?

Only if the crawler honours it. The protocol is a request. The large AI operators document that they follow it, but OpenAI says robots.txt rules may not apply to ChatGPT-User, which fetches a page because a person asked. Enforcement needs server or CDN rules.

### How long until a robots.txt change takes effect?

RFC 9309 says crawlers should not use a cached copy for more than 24 hours. OpenAI says it can take about 24 hours from a robots.txt update for its search systems to adjust. Expect a day, not a minute.

### How many sites block AI crawlers?

A minority. In Attensira's study of the 8,036 readable robots.txt files among the top 10,000 Tranco domains, 14.3% blocked GPTBot at the site root, 5.8% blocked OAI-SearchBot and 1.9% blocked Googlebot. Most sites never mention AI crawlers at all.

### Can robots.txt keep a page out of Google's index?

No. Blocking a URL stops crawling, not indexing: Google can still index a blocked URL it finds through links, without its content. To keep a page out, allow crawling and serve a noindex rule in the page or in an X-Robots-Tag header.
