Little Glossary · Measurement and search

robots.txt

robots.txt is a text file at the root of a domain (example.com/robots.txt) that tells crawlers which parts of a website they may crawl. Search engines and AI bots check it before crawling, and its format is standardized in RFC 9309.

Updated December 1, 2026

How it works

The file is organized in groups. Each group starts with one or more User-agent lines saying which crawler it applies to, followed by Disallow rules (don't crawl this path) and Allow rules (do crawl it). A Sitemap line says where the sitemap is.

# Search engines and assistants: may read and cite
User-agent: OAI-SearchBot
User-agent: Claude-SearchBot
User-agent: PerplexityBot
Allow: /

# Model training: no
User-agent: GPTBot
User-agent: ClaudeBot
User-agent: CCBot
Disallow: /

User-agent: *
Disallow: /admin/

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

It's a request, not a lock

The standard itself says its rules are not a form of access authorization. Crawlers from the big companies respect it, but nothing technical stops anyone else. And several companies document that their agents may not follow it when they visit because a user asked them to: OpenAI says so of ChatGPT-User, Google of its user-triggered fetchers, Perplexity of Perplexity-User and Meta of meta-externalfetcher. Anthropic says its bots do respect robots.txt.

To actually protect content you need something else: a password, or rules in your CDN or firewall.

The AI bots worth knowing

  • Training: GPTBot (OpenAI), ClaudeBot (Anthropic), CCBot (Common Crawl), meta-externalagent (Meta). Google-Extended and Applebot-Extended aren't crawlers but names that only control whether Google and Apple may use the content for training; blocking them doesn't affect search.
  • Search: OAI-SearchBot, Claude-SearchBot, PerplexityBot. OpenAI warns that sites that block OAI-SearchBot won't appear in ChatGPT search answers.
  • Users: ChatGPT-User, Claude-User, Perplexity-User. They visit a page when someone asks for it in the chat.

Common mistakes

  • Blocking GPTBot thinking it takes you out of ChatGPT. GPTBot is for training; what decides whether you appear in ChatGPT search is OAI-SearchBot.
  • Copying a list of "AI bots to block" without separating training, search and users. A company that wants to be found usually wants the opposite.
  • Using it to hide pages. Google explains that robots.txt isn't a way to keep a page out of its results: if other pages link to it, it can still be indexed. That's what noindex is for.
  • Shipping the staging robots.txt to production, with a Disallow: / that blocks the whole site.
  • Checking it in the CMS instead of on the live site. Some providers, such as Cloudflare, can generate or change the file from their dashboard.

What the data says

According to Cloudflare Radar, at the end of November 2026, 87% of the domains analyzed had a robots.txt and 84% included rules for AI bots.

Related terms

Sources

At Little we design and build for B2B tech companies for a monthly fee. See how it works →