Robots.txt examples, from the 10,000 most popular domains: on 26 Nov 2026 OCODATA asked each one for its file. 5,807 serve a real robots.txt. Half are 28 lines or shorter; the longest runs to 14,228.
A robots.txt is a plain text file at the root of a site that tells crawlers which paths they may fetch. The format is RFC 9309. How Google reads it: Google’s robots.txt spec.
| result | sites | share |
|---|---|---|
| domains asked (Tranco top 10,000) | 10,000 | |
| answered at all | 7,456 | |
| serve a robots.txt file | 5,807 | 58.1% of 10,000 |
disallow everything for * (CSV disallow_all) |
171 | 2.9% of files |
| allow everything (no Disallow path anywhere) | 668 | 11.5% of files |
| HTML page with status 200 (soft 404, login wall, bot check) | 522 | |
| 404 / 403 / other 4xx | 491 / 542 / 61 | |
| no answer or 5xx | 2,577 | 1,622 have no DNS |
To Google, a 4xx (429 aside) means no limits at all. An HTML page gets parsed for valid lines and the rest is dropped; we count it as no file.
Robots.txt disallow all example
reddit.com, rank 111. Five comment lines, then two that shut the whole site:
# Welcome to Reddit's robots.txt
# Reddit believes in an open internet, but not the misuse of public content.
(3 more comment lines)
User-agent: *
Disallow: /
171 files put Disallow: / under User-agent: *. Only 84 shut every group. The other 87 block * and give named bots their own, looser group. In the top 1,000, 28 files block *: 6 shut every bot and 22 let named bots in, 20 of them Googlebot: facebook.com, netflix.com, pinterest.com, wsj.com, yelp.com, imdb.com, trustpilot.com, baidu.com and more.
t.co, Twitter’s link shortener, the allowlist in 8 lines:
User-agent: twitterbot
Disallow:
# Google / Bing Search Engine Robots
User-agent: Googlebot
User-agent: Bingbot
Disallow:
User-agent: *
Disallow: /
Disallow is not noindex. Google says it may still show a blocked URL in results, without a snippet.
Robots.txt allow all example
668 files (11.5%) disallow nothing. anthropic.com, 3 lines:
User-Agent: *
Allow: /
Sitemap: https://www.anthropic.com/sitemap.xml
nasa.gov allows all twice, with a Crawl-delay for its own search bot that Google never reads:
User-agent: usasearch
Crawl-delay: 1
Allow: /
User-agent: *
Allow: /
An empty Disallow: works the same: Google ignores a rule with no path. ntp.org’s whole file is User-agent: * with no rule under it.
WordPress robots.txt example
WordPress builds this file in code (do_robots()); plugins change it through the robots_txt filter. Since 5.5 it adds the sitemap line. jquery.com and pubmatic.com serve the default as it ships:
User-agent: *
Disallow: /wp-admin/
Allow: /wp-admin/admin-ajax.php
Sitemap: https://jquery.com/wp-sitemap.xml
467 files (8.0%) carry a /wp-admin/ line. One in the top 400, cookiedatabase.org, puts Disallow: / above those lines: the whole site is out, the WordPress lines do nothing.
Robots.txt sample file: sitemap only, AI only
ourworldindata.org, the whole file, one of 37 that hold only Sitemap lines:
Sitemap: https://ourworldindata.org/sitemap.xml
envato.com, open to all but Common Crawl, one of 21 files whose only blocks are for AI bots:
User-agent: *
Disallow:
User-agent: CCBot
Disallow: /
Sitemap: https://www.envato.com/sitemap_index.xml
daringfireball.net does the same for one bot in 3 lines: a dated comment, User-agent: PerplexityBot, Disallow: /.
Robots.txt with AI bot groups
1,746 files (30.1%) name at least one AI bot, 4 groups at the median. cloudflare.com opens to them by name and adds a Content-Signal line (excerpt):
User-agent: GPTBot
Allow: /
User-agent: ChatGPT-User
Allow: /
(6 more AI bots, each Allow: /)
Content-Signal: ai-train=yes, search=yes, ai-input=yes
Which AI bots the top sites block, bot by bot: do websites block AI crawlers. The rules to copy: block AI crawlers.
How long is a robots.txt file
| lines (5,696 files that are not blank) | files |
|---|---|
| 1-5 | 1,131 |
| 6-20 | 1,348 |
| 21-50 | 991 |
| 51-100 | 1,042 |
| 101-500 | 1,056 |
| 501-1,000 | 83 |
| over 1,000 | 45 |
Median: 28 lines, 770 bytes, 2 user-agent groups. Nine in ten are 208 lines or fewer. The largest: boe.es (14,228 lines, 498,937 bytes), figma.com (9,173), next.co.uk (6,932). None passes Google’s 500 KiB read limit. 111 more files are blank or hold only comments.
google.com (491 lines) starts with one group shared by three names:
User-agent: *
User-agent: Google-Extended
User-agent: Yandex
Disallow: /search
Allow: /search/about
Allow: /search/howsearchworks
(485 more lines)
Lines Google ignores
Google reads four fields: user-agent, allow, disallow, sitemap. 1,457 files (25.1%) hold at least one line it skips, 6,603 lines in all (CSV column errors).
| line Google skips | files |
|---|---|
Crawl-delay |
700 |
Content-Signal |
388 |
Host |
250 |
Clean-param |
153 |
Noindex |
28 |
no field: value shape |
53 |
| Allow or Disallow before any User-agent | 7 |
github.com, wikipedia.org and msn.com all set a Crawl-delay. qq.com shows the broken kind: its whole file is one line, with \n typed as text instead of line breaks, so no line ever starts with Sitemap.
User-agent: *\nDisallow: \nSitemap: https://news.qq.com/sitemap/index.xml
Sitemap lines: in 4,033 files (69.5%), 21,156 in all, 1 at the median. se.com and schneider-electric.com list 526 each. Wildcards (* or $ in a path) show up in 3,281 files (56.5%).
By rank
| rank | domains | files | disallow all for * |
median lines | name an AI bot | Crawl-delay |
|---|---|---|---|---|---|---|
| 1-100 | 100 | 47 | 6 | 64 | 20 | 7 |
| 101-1,000 | 900 | 466 | 22 | 52 | 170 | 57 |
| 1,001-5,000 | 4,000 | 2,202 | 70 | 30.5 | 666 | 273 |
| 5,001-10,000 | 5,000 | 3,092 | 73 | 25 | 890 | 363 |
The bigger the site, the longer the file: the top 100 run more than twice the median of the bottom 5,000.
How we read 10,000 robots.txt files
- List: Tranco list 947P2, top 10,000 domains, made 25 Nov 2026.
- Ask:
https://<domain>/robots.txt, redirects followed, 8 seconds, 26 Nov 2026. - File: status 2xx, not HTML. Disallow all: the
*group blocks/with no Allow line (RFC 9309 matching, longest rule wins). - Ignored: any line outside Google’s four fields, a line with no
field: value, a rule before any User-agent.
Every domain with its result: download the CSV or JSON (CC BY 4.0). A site that refused or timed out counts as no file.
Check one site’s file against each AI bot: AI crawler checker. Need the robots.txt of every rival, tracked weekly? Book a demo.