Skip to content
AI search data

Robots.txt Examples From 389 Big Websites

A robots.txt file is a plain text file at the top of a website that tells crawlers which URLs they may request. We read that file on 389 big websites every week. 131 of them block at least one AI crawler, and they do it in a few recognizable ways. Here are those patterns and the rules behind them.

IndexHalo Editorial Team8 min read

The simplest robots.txt

Most files come down to a few lines. Each group names a crawler and lists what it may not request, and a catch-all group marked with * covers every crawler without its own group.

ROBOTS.TXT
User-agent: *
Disallow: /admin/

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

Google supports four fields: user-agent, allow, disallow and sitemap. It ignores others, including crawl-delay.

Four patterns from big websites

We resolve 30 AI crawlers against each site's live file. The sites fall into three groups, and a fourth pattern cuts across them. The rules below illustrate each pattern. They aren't copied from these sites, whose own reports list every verdict.

1. Leave the door open (258 sites)

These sites block none of the AI crawlers we track, because they have no rule that applies or a rule that allows them. Examples include wikipedia.org, youtube.com and shopify.com.

2. Name the AI crawlers one by one (114 sites)

This is the most common way to block. The site stays open to crawlers in general and lists the ones it declines. Examples include nytimes.com, bbc.co.uk and cnn.com.

PATTERN
User-agent: GPTBot
Disallow: /

User-agent: ClaudeBot
Disallow: /

User-agent: *
Allow: /

3. Block by default (17 sites)

The catch-all group refuses everything, and only crawlers given their own group get in. It is the strictest pattern, and any new AI crawler is blocked from the day it appears. Examples include reddit.com, pinterest.com and imdb.com.

PATTERN
User-agent: *
Disallow: /

User-agent: Googlebot
Allow: /

4. Decline training, allow search (49 sites)

Some operators run separate crawlers for model training and for search. These sites block OpenAI's GPTBot without blocking its OAI-SearchBot, so they can still be fetched for search results. All of them also belong to group 2 or 3. Examples include fool.com, forbes.com and techcrunch.com.

PATTERN
User-agent: GPTBot
Disallow: /

User-agent: OAI-SearchBot
Allow: /

Which AI crawlers get blocked most

Counted across the 389 sites in the latest reading. See the GPTBot and OAI-SearchBot pages for how OpenAI's two crawlers differ. The full list and how it changes are in the AI crawler study and the change log.

CrawlerOperatorPurposeSites blocking it
CCBotCommon Crawltraining dataset94 of 389
BytespiderByteDancemodel training92 of 389
ClaudeBotAnthropicmodel training85 of 389
Applebot-ExtendedAppleApple Intelligence control81 of 389
DiffbotDiffbotstructured-data extraction77 of 389
GPTBotOpenAImodel training76 of 389
AmazonbotAmazonmodel training71 of 389
Meta-ExternalAgentMetamodel training71 of 389

What ten big websites do

SiteGPTBotOAI-SearchBotClaudeBotPerplexityBotAI crawlers blocked
nytimes.comBlockedBlockedBlockedBlocked22 of 30
reddit.comBlockedBlockedBlockedBlocked30 of 30
wikipedia.orgOpenOpenOpenOpen0 of 30
bbc.co.ukBlockedBlockedBlockedBlocked20 of 30
amazon.comBlockedBlockedBlockedBlocked24 of 30
youtube.comOpenOpenOpenOpen0 of 30
cnn.comBlockedBlockedBlockedBlocked23 of 30
theguardian.comOpenOpenBlockedBlocked13 of 30
forbes.comBlockedOpenBlockedBlocked12 of 30
fool.comBlockedOpenBlockedOpen4 of 30

"Blocked by robots.txt": what it means and what to do

Search Console uses this label when a rule stops Googlebot from requesting a URL. Google can't read the page, so it can't judge the content. Start by opening /robots.txt on that host and finding the rule that matches the path.

  • If the block is a mistake, remove or narrow the rule, then check the URL again with URL Inspection in Search Console.
  • If you want the page out of search, robots.txt is the wrong tool. Use noindex and let Google crawl the page, because a blocked crawler never sees the noindex rule.
  • If you see "Indexed, though blocked by robots.txt", Google found links to the page and indexed the URL without crawling it. Decide which of the two cases above you are in.

Five rules that catch people out

  • A crawler follows only one group. Google uses the most specific group that matches the crawler and ignores the rest. A crawler with its own group doesn't also follow your User-agent: * rules.
  • The longest path wins, not the first line. For /page, Allow: /p beats Disallow: / because it is more specific. When rules conflict at the same length, Google uses the least restrictive one.
  • Each host needs its own file. A file on www.example.com doesn't cover blog.example.com, or a different protocol or port.
  • It isn't private. Anyone can read the file, so listing a secret path advertises it. RFC 9309 says the protocol is no substitute for real security.
  • There's a size limit. Google reads the first 500 KiB and ignores anything after it.

What this data doesn't show

These are well-known sites we chose to track, not a random sample of the web. We read what each file says about the site's home page, so a site may treat other paths differently. A file also doesn't show whether a crawler obeyed it, or why a site made its choice. A firewall can refuse a crawler the file allows, which the AI crawler directory covers.

Common questions

What does blocked by robots.txt mean?

A rule in the site's robots.txt file tells Googlebot not to request that URL, so Google can't read the page. The URL can still appear in search results if other pages link to it, usually with little information, because Google never read the page.

Does robots.txt keep a page out of Google?

No. Google says robots.txt is not a mechanism for keeping a page out of Google. To do that, use noindex or put the page behind a password. The page must stay crawlable for noindex to work, because a blocked crawler never sees the rule.

Where does a robots.txt file go?

In the top-level directory of the site, so it is found at /robots.txt. It applies only to that host, protocol and port, which means a subdomain needs its own file.

Do AI crawlers have to obey robots.txt?

robots.txt is a request rather than a lock. RFC 9309, the standard behind it, says its rules are not a form of access authorization. Our data records what each file says, not whether any crawler obeyed it.

Can I block ChatGPT's training crawler but stay in its search?

OpenAI runs separate crawlers, so a file can block GPTBot and still allow OAI-SearchBot. 49 of the 389 sites we read block GPTBot without blocking OAI-SearchBot.