Free auditStart free
ExamplesExamples · Crawling

robots.txt examples

Twelve real robots.txt files from Google, GitHub, The New York Times, Wikipedia and more, fetched on a date, with what each one does and what to copy.

12
real examples
Nov 1, 2026
captured
4
templates
Scaplet Editorial Team
editor
In one line

A robots.txt file sits at the root of a site and tells crawlers which paths they may request. The twelve files below were fetched from the live sites: some block AI crawlers by name, some only point to a sitemap, and one blocks everything for unknown bots. Copy the group pattern you need, then test it before you publish.

Across 12 captures

Counted from the captured files
10 of 12
Lists a sitemap
10 of 12
Uses wildcards
6 of 12
Blocks AI crawlers
6 of 12
No AI crawler rules
Side by side

The New York Times vs GitHub.

Two captures that solve the same job differently. Numbers come from the captures.
The New York Times
nytimes.com
User-agent: anthropic-ai
Disallow: /

User-agent: Applebot-Extended
Disallow: /

User-agent: Bytespider
Disallow: /
  • Blocks GPTBot, ChatGPT-User, OAI-SearchBot and ClaudeBot and 10 more AI crawlers from the whole site
  • Gives Amazonbot path-level rules
  • Lists 25 sitemaps
GitHub
github.com
User-agent: Bytespider
Disallow: /
  • Blocks Bytespider from the whole site
  • Gives GPTBot, OAI-SearchBot and ClaudeBot path-level rules
  • Lists 1 sitemap
The New York TimesGitHub
Rule lines273517
User-agent groups636
AI crawlers named156
Sitemaps251
Pattern library

4 patterns to copy.

Templates we wrote from what the examples have in common. Replace the placeholders in braces.
01

Open site with a sitemap

Most small sites: nothing to hide, and you want crawlers to find every page quickly.

Our template
User-agent: *
Disallow:

Sitemap: https://{your-domain}/sitemap.xml
02

Keep private paths out

Account, cart, search and admin URLs that waste crawl requests and shouldn't appear in results.

Our template
User-agent: *
Disallow: /account/
Disallow: /cart
Disallow: /search
Disallow: /admin/

Sitemap: https://{your-domain}/sitemap.xml
03

Block AI training, keep AI search

You want to stay out of model training but still be fetched and cited by AI search tools.

Our template
User-agent: GPTBot
User-agent: ClaudeBot
User-agent: CCBot
User-agent: Google-Extended
Disallow: /

User-agent: OAI-SearchBot
User-agent: Claude-SearchBot
User-agent: PerplexityBot
Allow: /

User-agent: *
Disallow: /admin/

Sitemap: https://{your-domain}/sitemap.xml
04

Close faceted URLs

Shops and listings where sort, filter and page parameters create endless near-duplicate URLs.

Our template
User-agent: *
Disallow: /*?sort=
Disallow: /*?filter=
Disallow: /*&page=
Allow: /*?page=1$

Sitemap: https://{your-domain}/sitemap.xml
01Checklist

How a robots.txt file is read

The file lives at the root of the host, for example https://example.com/robots.txt, and its rules apply only to that host and protocol. Rules come in groups: one or more User-agent lines followed by Allow and Disallow lines. RFC 9309 says crawlers must use case-insensitive matching to find the group for their product token, and the most specific path match wins, meaning the rule with the most octets.
  1. 01One group per crawler, or several crawlers per group. GitHub stacks five AI crawlers above one rule block; the BBC gives each its own group.
  2. 02Allow carves exceptions. Stripe's group for the Internet Archive disallows /docs but allows /docs/api, and the longer match decides.
  3. 03A trailing $ anchors the end of the URL. Use it to allow one exact path without opening everything below it.
  4. 04Sitemap lines sit outside the groups and use the full URL. The New York Times lists 25.
03Explained

Naming AI crawlers

AI companies publish separate tokens for training and for search or user requests. OpenAI's GPTBot collects training data while OAI-SearchBot fetches pages for ChatGPT search; Anthropic's ClaudeBot is its training crawler. A group for one token doesn't cover the others, which is why the publishers above list them one by one.

Before you publish, run the file through a tester for each token you care about. Our robots.txt tester checks any URL against a named crawler. For the file that points AI tools to your best pages, see the llms.txt examples.

Questions

Asked a lot.

4 questions people ask next, answered from the sources on this page.

01Where does the robots.txt file go?

At the root of each host: https://example.com/robots.txt. A file on www.example.com doesn't cover blog.example.com, and the http and https versions are separate too.

02Does robots.txt stop a page from appearing in Google?

No. Google says robots.txt is not a mechanism for keeping a page out of Google. Use a noindex rule or password protection, and leave the page crawlable so Google can see the noindex.

03Does Google follow Crawl-delay?

No. Google's documentation lists the fields it supports as user-agent, allow, disallow and sitemap, and says fields such as crawl-delay aren't supported.

04How big can a robots.txt file be?

Google reads the first 500 kibibytes and ignores the rest. RFC 9309 asks crawlers to parse at least 500 kibibytes.

Sources · 17

Every fact, linked and dated.

Official docs first, then every capture with the date we fetched it.
  • rfc-editor.org
  • google.com
  • openai.com
  • claude.com
  • apple.com
  • co.uk
  • github.com
  • ikea.com
  1. 01RFC 9309: Robots Exclusion Protocolrfc-editor.org · checked 2026-11-01
  2. 02How Google interprets the robots.txt specificationdevelopers.google.com · checked 2026-11-01
  3. 03Robots.txt introduction and guidedevelopers.google.com · checked 2026-11-01
  4. 04Overview of OpenAI crawlersplatform.openai.com · checked 2026-11-01
  5. 05Does Anthropic crawl data from the web, and how can site owners block the crawler?support.claude.com · checked 2026-11-01
  6. 06Apple robots.txtapple.com · checked 2026-11-01
  7. 07BBC robots.txtbbc.co.uk · checked 2026-11-01
  8. 08GitHub robots.txtgithub.com · checked 2026-11-01
  9. 09Google robots.txtgoogle.com · checked 2026-11-01
  10. 10IKEA robots.txtikea.com · checked 2026-11-01
  11. 11Medium robots.txtmedium.com · checked 2026-11-01
  12. 12Reddit robots.txtreddit.com · checked 2026-11-01
  13. 13Shopify robots.txtshopify.com · checked 2026-11-01
  14. 14Stripe robots.txtstripe.com · checked 2026-11-01
  15. 15The Guardian robots.txttheguardian.com · checked 2026-11-01
  16. 16The New York Times robots.txtnytimes.com · checked 2026-11-01
  17. 17Wikipedia robots.txten.wikipedia.org · checked 2026-11-01
Free · 2 minutes

Seen the examples? Now check your own site.

The free audit reads your robots.txt, title tags, meta descriptions, structured data and status codes, and lists what to fix.

Free, no card60 secondsNobody will call you
  • 46 fixes shipped without a ticket Brightpipe
  • +212% organic clicks in 90 days Ledgerly