# Set up robots.txt so AI can cite you, and train only if you agree

> To be cited by AI assistants, allow their search crawlers in robots.txt: OAI-SearchBot, Claude-SearchBot, PerplexityBot, Googlebot, Bingbot, Applebot and Meta-WebIndexer. Blocking training crawlers such as GPTBot or ClaudeBot is a separate, legitimate choice that doesn't remove you from AI search. User-triggered fetchers may ignore robots.txt entirely.

Source: https://surfacedd.com/guides/robots-txt-for-ai-crawlers · Updated 2026-11-19

## Should you block AI crawlers?

Block training crawlers only if you don't want your content used to train models, and keep search crawlers allowed if you want to be cited. AI companies now run separate crawlers for training, for search indexing, and for fetching a page when a user asks, and robots.txt can allow or block each one on its own.

The mistake to avoid is a blanket rule that blocks everything with "AI" in its name. It removes you from the answers you probably want to appear in, and it does little to protect content that has already been collected. Our [catalog of AI crawlers](/guides/ai-crawlers) lists every one by purpose.

## The three kinds of AI crawler

AI crawlers fall into three groups, and the right robots.txt policy differs for each. The table follows each operator's own documentation (links in Sources, checked 2026-11-19).

| Group | What it does | User agents | If you block it |
|---|---|---|---|
| **Search and citation** | Indexes pages so an assistant can show and cite them | OAI-SearchBot, Claude-SearchBot, PerplexityBot, Googlebot, Bingbot, Applebot, Meta-WebIndexer | The assistant can't cite your pages. Usually not what you want. |
| **Training** | Collects pages to train future models | GPTBot, ClaudeBot, CCBot, Meta-ExternalAgent | Future models learn less about you from your own site. Current search answers are unaffected. |
| **User-initiated fetch** | Loads a page because a user's conversation needs it | ChatGPT-User, Claude-User, Perplexity-User, Meta-ExternalFetcher | Some operators say robots.txt may not apply to these at all. |

## Crawler reference

Each operator documents its crawlers. These notes summarise those pages; follow the links for current wording, because vendors change them often.

| User agent | Operator | Purpose | robots.txt |
|---|---|---|---|
| GPTBot | OpenAI | Model training | Followed; controlled separately from OAI-SearchBot ([OpenAI](https://developers.openai.com/api/docs/bots)) |
| OAI-SearchBot | OpenAI | Showing sites in ChatGPT search | Followed. Blocked sites can still appear as plain navigational links |
| ChatGPT-User | OpenAI | Fetches pages on a user's request | OpenAI: "robots.txt rules may not apply" |
| ClaudeBot | Anthropic | Model training | Followed, including the non-standard `Crawl-delay` ([Anthropic](https://support.claude.com/en/articles/8896518-does-anthropic-crawl-data-from-the-web-and-how-can-site-owners-block-the-crawler)) |
| Claude-SearchBot | Anthropic | Search result quality | Anthropic says its bots honour robots.txt |
| Claude-User | Anthropic | Fetches pages on a user's request | Blocking it stops retrieval for user queries |
| PerplexityBot | Perplexity | Surfacing and linking sites in Perplexity; not training | Perplexity recommends allowing it ([Perplexity](https://docs.perplexity.ai/guides/bots)) |
| Perplexity-User | Perplexity | Visits on a user's request | "Generally ignores robots.txt rules" |
| Googlebot | Google | Search, including AI Overviews and AI Mode | Followed; snippet controls also apply ([Google](https://developers.google.com/search/docs/appearance/ai-features)) |
| Bingbot | Microsoft | Bing search and Copilot answers | Followed |
| Applebot | Apple | Siri, Spotlight and Safari features | Followed; falls back to Googlebot rules if it has no group ([Apple](https://support.apple.com/en-us/119829)) |
| Meta-WebIndexer | Meta | Citations in Meta AI search | Meta says allowing it helps Meta AI cite you ([Meta](https://developers.facebook.com/docs/sharing/webmasters/web-crawlers)) |
| Meta-ExternalAgent | Meta | Training foundation models | Block with a `Disallow` for its token |
| CCBot | Common Crawl | Open crawl dataset many models train on | Followed ([Common Crawl](https://commoncrawl.org/ccbot)) |

## How to block ChatGPT (and what you lose)

To block ChatGPT completely, you need three rules, because OpenAI runs three bots. Most people who say "block ChatGPT" only want the first one.

| What you want | Rule | What you lose |
|---|---|---|
| Stop OpenAI training on your site | `User-agent: GPTBot` + `Disallow: /` | Nothing in today's ChatGPT. Future models learn less from your site. |
| Stay out of ChatGPT search answers | `User-agent: OAI-SearchBot` + `Disallow: /` | Citations in ChatGPT search. OpenAI says you can still appear as a navigational link. |
| Stop ChatGPT fetching pages users ask about | `User-agent: ChatGPT-User` + `Disallow: /` | Live reads when users paste your URL. OpenAI warns robots.txt "may not apply" here. |

The training-only opt-out, which keeps you in ChatGPT search:

```txt
User-agent: GPTBot
Disallow: /

User-agent: OAI-SearchBot
Allow: /
```

The full block, which removes you from ChatGPT search too:

```txt
User-agent: GPTBot
User-agent: OAI-SearchBot
User-agent: ChatGPT-User
Disallow: /
```

What a full block costs you, concretely:

- **ChatGPT search can't quote you.** When someone asks "what's the best tool for X?", ChatGPT answers from pages it may cite. Yours won't be among them, so third-party pages describe you instead.
- **You can't correct the record.** If an assistant gets your pricing wrong, the fix is usually an accurate page it can read. A blocked page can't do that job.
- **It doesn't erase anything.** Pages already crawled for training stay in existing models. Mentions on other sites still feed answers about you.
- **It takes about a day.** OpenAI says its search systems can take around 24 hours to reflect a robots.txt change. ([OpenAI](https://developers.openai.com/api/docs/bots))

A firmer alternative for single pages: OpenAI's publisher FAQ says a `noindex` meta tag keeps a page out of ChatGPT search, provided OAI-SearchBot is allowed to crawl it and read the tag. ([OpenAI](https://help.openai.com/en/articles/12627856-publishers-and-developers-faq)) That lets you hide one page without blocking the whole site.

The same logic applies to Claude (ClaudeBot for training, Claude-SearchBot for search, Claude-User for live fetches) and Perplexity (PerplexityBot for search, Perplexity-User for live fetches, no training crawler).

## Google-Extended and Applebot-Extended

`Google-Extended` and `Applebot-Extended` are robots.txt tokens, not crawlers. No bot visits your site with those names: Googlebot and Applebot fetch the page, and the token only governs how the content may be used afterwards.

**Google-Extended** controls whether content Google crawls may be used for training future Gemini models and for grounding in Gemini Apps and Vertex AI. Google states it "does not impact a site's inclusion in Google Search nor is it used as a ranking signal in Google Search." ([Google](https://developers.google.com/search/docs/crawling-indexing/google-common-crawlers)) The part many site owners miss is grounding: blocking it can keep your pages out of answers in the Gemini app, even though Search is unaffected.

**Applebot-Extended** opts your content out of training Apple's foundation models. Apple says it is "only used to determine how to use the data crawled by the Applebot user agent", and disallowing it doesn't remove you from Apple's search features. ([Apple](https://support.apple.com/en-us/119829))

There is no token that removes you from AI Overviews or AI Mode while keeping you in Google Search, because those features use the normal Search index. Google's controls for them are the standard snippet directives: "use nosnippet, data-nosnippet, max-snippet, or noindex". ([Google](https://developers.google.com/search/docs/appearance/ai-features)) These limit how your content is shown everywhere in Search, not only in AI features.

## A recommended robots.txt for brands that want to be cited

For a company that wants assistants to know about it and cite it, a permissive file is the simplest correct choice. This example allows every search, fetch and training crawler explicitly, keeps private paths closed, and lists the sitemap.

```txt
# Search and citation crawlers
User-agent: OAI-SearchBot
User-agent: Claude-SearchBot
User-agent: PerplexityBot
User-agent: Googlebot
User-agent: Bingbot
User-agent: Applebot
User-agent: Meta-WebIndexer
Allow: /
Disallow: /api/
Disallow: /checkout

# User-initiated fetchers
User-agent: ChatGPT-User
User-agent: Claude-User
User-agent: Perplexity-User
Allow: /
Disallow: /api/
Disallow: /checkout

# Training crawlers (change Allow to Disallow: / to opt out of training)
User-agent: GPTBot
User-agent: ClaudeBot
User-agent: CCBot
User-agent: Meta-ExternalAgent
Allow: /
Disallow: /api/
Disallow: /checkout

# Everyone else
User-agent: *
Allow: /
Disallow: /api/
Disallow: /checkout

Sitemap: https://example.com/sitemap.xml
```

Notes on the example:

- **Groups don't inherit.** A crawler that matches a named group ignores the `*` group entirely, so repeat your `Disallow` lines in each group.
- **Longest match wins.** Within a group, the rule with the longest matching path applies, and `Allow` wins a tie, per RFC 9309. ([RFC 9309](https://www.rfc-editor.org/rfc/rfc9309.html))
- **Tokens are case-insensitive.** RFC 9309 says crawlers "MUST use case-insensitive matching", so `meta-webindexer` and `Meta-WebIndexer` are the same group.
- **Google-Extended and Applebot-Extended aren't listed,** which means they are allowed. Add them with `Disallow: /` only if you've decided Gemini and Apple training and grounding aren't worth it.

Surfacedd's own robots.txt follows this pattern: it allows every crawler, names the main AI search, fetch and training agents explicitly, never blocks Google-Extended or Applebot-Extended, and disallows only API, checkout, account and thank-you paths. 

## A variant for publishers who opt out of training

Publishers who license their content often block training while staying in search. The change is one group:

```txt
User-agent: GPTBot
User-agent: ClaudeBot
User-agent: CCBot
User-agent: Meta-ExternalAgent
User-agent: Google-Extended
User-agent: Applebot-Extended
Disallow: /
```

Mind the trade-off with `Google-Extended`: it also stops grounding in the Gemini app. If Gemini citations matter to you, leave it out of this group.

## Check your CDN and firewall, not just robots.txt

robots.txt is a request, and your infrastructure may override it. Bot-protection features on CDNs and hosts often challenge or block AI crawlers even when robots.txt allows them, and the crawler then sees an error page instead of your content.

To check:

1. Look at your CDN's bot settings for "AI bots" or "verified bots" categories, and allow the search crawlers you want.
2. Review your server or CDN logs for these user agents and the status codes they receive. Steady 403 or 503 responses to OAI-SearchBot or PerplexityBot mean they are being blocked. Our [log file analysis method](/guides/log-file-analysis-for-ai-crawlers) covers this step by step.
3. Confirm that requests claiming to be a crawler come from that operator's published IP ranges. User agents are easy to fake; see [how to verify AI crawlers](/guides/verify-ai-crawlers).

The free [AI bot log analyzer](/tools/ai-bot-log-analyzer) does the first part of step 2 in your browser without uploading the log.

## Common mistakes

- **Blocking GPTBot and expecting to vanish from ChatGPT.** GPTBot is training only. ChatGPT search uses OAI-SearchBot.
- **Blocking Google-Extended to "protect SEO".** It has no effect on Google Search, but it does affect Gemini-app grounding.
- **A forgotten `Disallow: /`** in the `*` group, copied from a staging site.
- **A robots.txt that returns 5xx.** RFC 9309 tells crawlers to treat an unreachable robots.txt as "complete disallow", so a failing endpoint blocks everything. A 404, by contrast, means everything is allowed.
- **Assuming robots.txt stops user-initiated fetches.** OpenAI, Perplexity and Meta all say it may not.
- **Relying on llms.txt instead.** It's a separate, optional file, and the evidence that it affects citations is thin. Our [llms.txt guide](/guides/llms-txt) reviews what's known, and the free [llms.txt validator](/tools/llms-txt-generator) checks a file if you publish one.

## How to test your robots.txt

Test each crawler against your most important URLs, not only the home page, because wildcard rules and path patterns often block product or pricing pages by accident. The free [AI crawler checker](/tools/ai-crawler-checker) fetches your robots.txt and shows a verdict for every AI crawler on the paths you choose, with the rule that decided it. It applies RFC 9309 plus Google's documented behaviour, including Applebot's fallback to Googlebot rules. 

robots.txt is only the first gate. To check whether AI agents can also understand your pages and act on them, run the [agent readiness checker](/tools/agent-readiness-checker).

## In Surfacedd

Surfacedd's site audit reads your robots.txt and builds an access matrix: every AI crawler against your key pages. A blocked search crawler is a critical issue, a blocked training crawler is information (it's a valid choice), and a blocked Google-Extended is information with a note about Gemini grounding. The audit also flags restrictive snippet directives and missing or invalid structured data on key pages. 

![The AI crawler access matrix, showing OAI-SearchBot blocked on every key page while ChatGPT-User, Claude and Perplexity crawlers are allowed, and GPTBot blocked only on /docs/](https://surfacedd.com/shots/siteaudit-light.png "Sample workspace, fictional brand")
The example above is the most expensive mistake on this page in one row: OAI-SearchBot blocked everywhere, which keeps the brand out of ChatGPT search while its training crawler is still allowed. The [AI visibility audit feature](/features/ai-visibility-audit) explains every rule, and the audit runs locally at no cost per scan. See [pricing](/pricing) for the app itself. 

## Sources

- [OpenAI: Overview of OpenAI crawlers](https://developers.openai.com/api/docs/bots), checked 2026-11-19
- [OpenAI: Publishers and developers FAQ](https://help.openai.com/en/articles/12627856-publishers-and-developers-faq), checked 2026-11-19
- [Anthropic: Does Anthropic crawl data from the web, and how can site owners block the crawler?](https://support.claude.com/en/articles/8896518-does-anthropic-crawl-data-from-the-web-and-how-can-site-owners-block-the-crawler), checked 2026-11-19
- [Perplexity: Perplexity crawlers](https://docs.perplexity.ai/guides/bots), checked 2026-11-19
- [Google: Google's common crawlers (Google-Extended)](https://developers.google.com/search/docs/crawling-indexing/google-common-crawlers), checked 2026-11-19
- [Google: AI features and your website](https://developers.google.com/search/docs/appearance/ai-features), checked 2026-11-19
- [Apple: About Applebot](https://support.apple.com/en-us/119829), checked 2026-11-19
- [Meta: Meta web crawlers](https://developers.facebook.com/docs/sharing/webmasters/web-crawlers), checked 2026-11-19
- [Common Crawl: CCBot](https://commoncrawl.org/ccbot), checked 2026-11-19
- [RFC 9309: Robots Exclusion Protocol](https://www.rfc-editor.org/rfc/rfc9309.html), checked 2026-11-19

## Fair questions

### How do I block ChatGPT from my website?

Add `User-agent: GPTBot` with `Disallow: /` to stop training, `User-agent: OAI-SearchBot` with `Disallow: /` to leave ChatGPT search, and `User-agent: ChatGPT-User` with `Disallow: /` for live fetches. Most sites only want the first. OpenAI says ChatGPT-User may not follow robots.txt, because a person asked for the page.

### Does blocking GPTBot remove me from ChatGPT?

No. GPTBot only collects training data. ChatGPT's search answers come from OAI-SearchBot's index, and live page reads come from ChatGPT-User. Blocking GPTBot alone opts you out of future training while you stay citable in ChatGPT search. Pages already collected for earlier models are not removed by a robots.txt change.

### Should I block Google-Extended?

Only if you've decided that Gemini training and grounding aren't worth it. Google says Google-Extended doesn't affect inclusion or ranking in Google Search, but it does govern grounding in the Gemini app and Vertex AI, so blocking it can keep you out of Gemini answers. It has no effect on AI Overviews or AI Mode.

### Can I block AI Overviews but keep Google Search?

Not with robots.txt. AI Overviews and AI Mode use the normal Search index, and there is no separate token for them. Google's controls are snippet directives such as nosnippet, data-nosnippet and max-snippet, which limit how your text appears across all of Search, including ordinary results. Blocking Googlebot removes you from Search entirely.

### How long until AI crawlers obey a robots.txt change?

OpenAI and Perplexity each say their systems can take up to about 24 hours to reflect a change, and RFC 9309 tells crawlers not to use a cached robots.txt for more than 24 hours unless the file is unreachable. Wait a day, then check your logs for the crawler's next visits and the status codes it received.

### Does robots.txt stop AI from using my content?

It stops compliant crawlers from fetching pages from that point on. It doesn't remove content already collected, it doesn't bind scrapers that ignore it, and several operators say their user-triggered fetchers may not apply it. For content that must stay private, use authentication. For training opt-outs, robots.txt is the mechanism the major operators document.

### What happens if my robots.txt returns an error?

It depends on the error. Under RFC 9309, a 4xx response such as 404 means crawlers may access everything. A 5xx response means the file is unreachable, and crawlers must assume complete disallow. A misconfigured server returning 500 for robots.txt can therefore block every AI and search crawler at once.
