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

> robots.txt tells crawlers what they may read. How AI crawlers interpret it, and the common mistake that hides sites from ChatGPT, Claude and Perplexity.

Source: https://aiseotop.com/glossary/robots-txt (updated 2026-12-01)

**robots.txt** is a plain-text file at the root of your site (`/robots.txt`) that tells crawlers which parts they may read. Each group starts with `User-agent:` lines naming crawlers, followed by `Allow:` and `Disallow:` rules. The format is standardized in RFC 9309.

## How do AI crawlers use robots.txt?

- **Crawlers that build search results for AI answers** (`OAI-SearchBot`, `Claude-SearchBot`, `PerplexityBot`, Googlebot, Bingbot) follow it. Blocking one hides you from that assistant's answers.
- **Training crawlers** (`GPTBot`, `ClaudeBot`) follow it too. Blocking them opts you out of training but doesn't hide you from AI search.
- **User-initiated fetchers** (`ChatGPT-User`, `Perplexity-User`) are often documented as not following it, because a person asked for the page.
- **Some crawlers borrow other rules.** Brave's crawler, which powers Claude's web search, follows your Googlebot rules. Applebot falls back to them when it isn't named.

## The common mistake

Copying a "block all AI bots" list into robots.txt. Most of those lists mix search crawlers with training crawlers, so sites opt out of training and disappear from ChatGPT and Perplexity answers at the same time. Decide per crawler: our [AI crawler directory](https://aiseotop.com/bots) says what each one does.

## Sources

- IETF, [RFC 9309: Robots Exclusion Protocol](https://www.rfc-editor.org/rfc/rfc9309)
- OpenAI, [Overview of OpenAI crawlers](https://developers.openai.com/api/docs/bots)
- Brave, [Brave Search crawler](https://search.brave.com/help/brave-search-crawler)
