# AI crawlers in robots.txt: which bots ten sites name and block

AI companies send two kinds of client: a crawler that collects pages for training, and a fetcher that reads one page when a person asks. The robots.txt of ten well-known sites read in one run, with which of seven AI clients each file blocks.

Canonical: https://spider.cloud/learn/ai-crawler-user-agents/

An AI crawler is a program an AI company runs to fetch web pages, and it announces itself with a user agent such as GPTBot or ClaudeBot. A site allows or refuses each one by name in its robots.txt file. The same companies also send a second kind of client, which reads one page because a person asked a question, and it carries a different name.

That second name is the one that matters if you build agents. Your agent is a fetch a person asked for, and many sites now write separate rules for that case.

## Two kinds of client, two names

The companies publish the names themselves. OpenAI's documentation says of GPTBot: "It is used to crawl content that may be used in training our generative AI foundation models." Of its other client it says: "When users ask ChatGPT or a CustomGPT a question, it may visit a web page with a ChatGPT-User agent."

Anthropic splits its clients the same way, with ClaudeBot for collecting training material and Claude-User for a page a person asked about. It also says how a site opts out: "Opting out of being crawled by Anthropic Bots requires modifying the robots.txt file in the manner above."

Here are the seven names this page counts.

| User agent      | Run by       | What it fetches for                                                     |
| --------------- | ------------ | ----------------------------------------------------------------------- |
| GPTBot          | OpenAI       | Training                                                                |
| ClaudeBot       | Anthropic    | Training                                                                |
| CCBot           | Common Crawl | A public archive of the web                                             |
| Google-Extended | Google       | A robots.txt name that controls AI use; it sends no requests of its own |
| PerplexityBot   | Perplexity   | Its search index                                                        |
| ChatGPT-User    | OpenAI       | One page, when a person asks                                            |
| Claude-User     | Anthropic    | One page, when a person asks                                            |

## The run: ten robots.txt files

The script below fetches `/robots.txt` from ten well-known sites through `/scrape` and splits each file into its groups. A group is one or more `User-agent` lines followed by rules. For each of the seven names it reports `blocked` when a group that names it holds `Disallow: /`, and `named` when the name has a group that stops short of that. A name with no group of its own falls under the file's rules for everyone and is not printed.

```python
"""Read the robots.txt of ten sites through the Spider API and print which AI
crawlers each file names.

    python3 ai_robots.py

For each site it prints the status, then every crawler on the list that has a
group of its own in the file: "blocked" when that group disallows the whole
site, "named" when it has a group that does not. A crawler with no group of
its own falls under the file's rules for everyone and is not printed.
"""
import json
import os
import sys
import urllib.request

API = "https://api.spider.cloud/scrape"
USER_AGENT = "examplebot/1.0 (+https://example.com/bot; bot@example.com)"
SITES = [
    "www.nytimes.com", "www.theguardian.com", "www.reddit.com", "en.wikipedia.org",
    "github.com", "stackoverflow.com", "medium.com", "www.bbc.com",
    "www.amazon.com", "www.cnn.com",
]
CRAWLERS = ["GPTBot", "ClaudeBot", "Google-Extended", "CCBot", "PerplexityBot",
            "ChatGPT-User", "Claude-User"]


def fetch(key, url):
    body = json.dumps({"url": url, "request": "http", "return_format": "raw",
                       "user_agent": USER_AGENT}).encode()
    req = urllib.request.Request(API, data=body, headers={
        "Authorization": f"Bearer {key}",
        "Content-Type": "application/json",
    })
    with urllib.request.urlopen(req, timeout=120) as resp:
        pages = json.load(resp)
    return pages[0] if pages else {}


def groups(text):
    """Each group in a robots.txt file as (user agents, rules)."""
    out, agents, rules = [], [], []
    for raw in text.splitlines():
        line = raw.split("#", 1)[0].strip()
        if ":" not in line:
            continue
        field, value = (part.strip() for part in line.split(":", 1))
        field = field.lower()
        if field == "user-agent":
            if rules:
                out.append((agents, rules))
                agents, rules = [], []
            agents.append(value.lower())
        elif field in ("allow", "disallow") and agents:
            rules.append((field, value))
    if agents:
        out.append((agents, rules))
    return out


def verdict(found, crawler):
    """None when no group names the crawler, else "blocked" or "named"."""
    mine = [rules for agents, rules in found if crawler.lower() in agents]
    if not mine:
        return None
    whole = any(("disallow", "/") in rules for rules in mine)
    return "blocked" if whole else "named"


def main() -> int:
    key = os.environ.get("SPIDER_API_KEY")
    if not key:
        print("set SPIDER_API_KEY first")
        return 1
    blocked = dict.fromkeys(CRAWLERS, 0)
    read = 0
    for site in SITES:
        page = fetch(key, f"https://{site}/robots.txt")
        text = page.get("content") or ""
        found = groups(text)
        if page.get("status") != 200 or not found:
            print(f"{site:<20} status {page.get('status')}, no rules read")
            continue
        read += 1
        parts = []
        for crawler in CRAWLERS:
            what = verdict(found, crawler)
            if what:
                parts.append(f"{crawler} {what}")
                blocked[crawler] += what == "blocked"
        print(f"{site:<20} status {page.get('status')}, {', '.join(parts) or 'none of these named'}")
    print(f"files read: {read} of {len(SITES)}")
    print("blocked outright by: " + ", ".join(f"{c} {n}" for c, n in blocked.items()))
    return 0 if read else 2


if __name__ == "__main__":
    sys.exit(main())
```

It ran on 2026-11-23 at 02:00 UTC. This is everything it printed:

```text
www.nytimes.com      status 200, GPTBot blocked, ClaudeBot blocked, Google-Extended blocked, CCBot blocked, PerplexityBot blocked, ChatGPT-User blocked, Claude-User blocked
www.theguardian.com  status 200, ClaudeBot blocked, CCBot blocked, PerplexityBot blocked, Claude-User blocked
www.reddit.com       status 200, none of these named
en.wikipedia.org     status 200, none of these named
github.com           status 200, GPTBot named, ClaudeBot named, PerplexityBot named, ChatGPT-User named, Claude-User named
stackoverflow.com    status 418, no rules read
medium.com           status 200, GPTBot blocked, ClaudeBot blocked
www.bbc.com          status 200, GPTBot blocked, ClaudeBot blocked, Google-Extended blocked, CCBot blocked, PerplexityBot blocked, ChatGPT-User blocked
www.amazon.com       status 200, GPTBot blocked, ClaudeBot blocked, Google-Extended blocked, CCBot blocked, PerplexityBot blocked, ChatGPT-User blocked, Claude-User blocked
www.cnn.com          status 200, GPTBot blocked, ClaudeBot blocked, CCBot blocked, PerplexityBot blocked, ChatGPT-User blocked, Claude-User blocked
files read: 9 of 10
blocked outright by: GPTBot 5, ClaudeBot 6, Google-Extended 3, CCBot 5, PerplexityBot 5, ChatGPT-User 4, Claude-User 4
```

## What the nine files say

Nine files came back. Stack Overflow answered 418 and sent no rules, so it is not in the count.

Seven of the nine name at least one AI client. Six block one outright. ClaudeBot is refused by six files and GPTBot by five, so the training crawlers are the most refused names on the list.

The fetch a person asked for is refused less often, by four files each for ChatGPT-User and Claude-User. Two files show the split plainly. Medium blocks GPTBot and ClaudeBot and has no group for either user fetcher. The BBC blocks six of the seven names and leaves Claude-User without a group. A site can refuse to be training material and still let a person's assistant read a page.

A line that reads `none of these named` does not mean open. Reddit and Wikipedia have no group for any of the seven, so each of those clients falls under the file's rules for everyone, and those rules can be strict. GitHub is the other way round: it gives five of the names a group of their own, and none of those groups closes the whole site.

The script is a small parser, and it only looks for a whole-site `Disallow: /`. It does not report partial rules, and it matches names exactly, so a file that blocks a crawler through a wildcard would not show here. Sites edit these files often, and this count is one day's reading.

## What this means for your agent

Your agent fetches a page because a person asked, so it sits beside ChatGPT-User and Claude-User, not beside GPTBot. It still has to do what those clients do.

- **Send a user agent of your own.** Name the agent and give a contact address. Do not borrow another company's name to pass a rule written for it.
- **Read robots.txt for your own name first, then the rules for everyone.** That is the order the standard sets. The page on [robots.txt](/learn/robots-txt/) walks through how a group is chosen, and the page on [user agents](/learn/user-agent/) covers what to put in the header.
- **Honour a refusal.** A site that blocks every AI client by name has told you what it wants, even if your name is not on its list yet. Its terms may say the same in words.

A site can also say what it would like a model to read. That is what an [llms.txt file](/learn/llms-txt/) is for. And none of this changes the basics of [web scraping](/web-scraping/): keep a polite request rate, and treat copyright as the site's.

## Do this, avoid this

### Do this

- Give your agent its own user agent with a contact address.
- Check robots.txt for your agent's name, then for the rules that cover everyone.
- Treat a site that blocks the AI fetchers by name as one that does not want agent traffic.
- Reread a site's file from time to time. These rules change.

### Avoid this

- Sending GPTBot, ClaudeBot or any other company's user agent as your own.
- Reading 'none of these named' as permission. The rules for everyone still apply.
- Assuming a block on a training crawler covers a fetch a person asked for, or the reverse.
- Fetching a blocked page through a different client to get round the rule.

## Check a site you care about

Put your own sites in the list and run the script. If you publish a site, the output shows what an AI client is told today. If you build an agent, it shows which of the sites you depend on have already written a rule for fetchers like yours.

## Sources

1. [OpenAI Platform documentation, Overview of OpenAI crawlers](https://platform.openai.com/docs/bots) Read November 23, 2026
2. [Claude Help Center, Does Anthropic crawl data from the web, and how can site owners block the crawler?](https://support.claude.com/en/articles/8896518-does-anthropic-crawl-data-from-the-web-and-how-can-site-owners-block-the-crawler) Read November 23, 2026
