DEV Community

Cover image for Your Vibe-Coded robots.txt Blocks ChatGPT Search. I Wrote a Checker.
Vincent for Polydraft

Posted on

Your Vibe-Coded robots.txt Blocks ChatGPT Search. I Wrote a Checker.

A post I saw on X this week put it cleanly: vibe coding isn't ending. It's growing a test suite and a review step, and then nobody calls it vibe coding anymore. That matches the work I actually do after a marketing site comes out of a coding agent. The review step is usually not a clever exploit. It's a file the agent wrote when someone typed "block AI crawlers from training on our content."

I keep seeing the same shape. The comment at the top talks about training. The rules also Disallow the crawlers that ChatGPT, Claude and Perplexity use for search. Google Search still works, so nobody notices for a month. The site is live, the sitemap line is missing, and three assistant-search crawlers were told to stay away.

It doesn't matter whether the site came from Cursor, Claude Code or an AI website builder. If robots.txt treats "AI" as one bucket, this applies.

So I wrote the kind of robots.txt a coding agent produces for that prompt, for a fictional bookkeeping practice called Bramble Books. Then I wrote a short checker, crawler_access.py, that evaluates a dated matrix of official tokens — search, training and user-triggered, which are not the same thing — and says which ones are allowed to fetch /. I ran it, rewrote the file so the training opt-out stayed and the search crawlers were allowed, and ran it again. All the numbers below come from those two runs.

The fixture

Bramble Books is fictional. It does bookkeeping for independent shops in Portland. The repo looks like a typical generated marketing site. The file that matters here is robots.txt.

The prompt I used as the model is the one people actually type: "Add a robots.txt that blocks AI crawlers from training on our content." The file below is the kind of answer that prompt produces. The comment is about training. The list is the usual blob of names from a public "block AI crawlers" snippet.

# Block AI crawlers from training on our content.
# Generated for the Bramble Books marketing site.

User-agent: GPTBot
Disallow: /

User-agent: ChatGPT-User
Disallow: /

User-agent: OAI-SearchBot
Disallow: /

User-agent: CCBot
Disallow: /

User-agent: anthropic-ai
Disallow: /

User-agent: Claude-Web
Disallow: /

User-agent: ClaudeBot
Disallow: /

User-agent: Claude-SearchBot
Disallow: /

User-agent: Claude-User
Disallow: /

User-agent: Google-Extended
Disallow: /

User-agent: Applebot-Extended
Disallow: /

User-agent: PerplexityBot
Disallow: /

User-agent: Bytespider
Disallow: /

User-agent: meta-externalagent
Disallow: /

User-agent: *
Allow: /
Enter fullscreen mode Exit fullscreen mode

There is no Sitemap: line. There is no llms.txt. Googlebot is not named, so it falls through to User-agent: * and is allowed. That is why this is easy to miss: Google Search still works.

OpenAI documents GPTBot for training and OAI-SearchBot for ChatGPT search, as separate tokens. Anthropic does the same with ClaudeBot and Claude-SearchBot. A Disallow on the training token is a policy choice. A Disallow on the search token can hide the site from that assistant's results. I used the token list as of 14 November 2026, from the operators' own crawler pages. We keep a dated table of those names in our robots.txt examples for search and AI crawlers, because the names change and old gists do not.

The file also names anthropic-ai and Claude-Web. Those are historical tokens. They do not stand in for Claude-SearchBot.

The checker

crawler_access.py reads a robots.txt — and an llms.txt if you pass one — and evaluates a fixed matrix of official tokens against a path, default /.

It follows Google's matching rules: the most specific (longest) matching User-agent group wins, and * is used only when no named group matches. For the path, the longest matching Allow or Disallow rule wins; a tie prefers Allow. A named group does not inherit the * group's rules, and * does not apply once a named group matches.

It does not fetch the live site, does not check IP ranges, and does not claim a crawler will honor the file. User-triggered fetchers get their own section because OpenAI and Perplexity say robots.txt may not apply to them. A hard block belongs at the edge.

crawler_access.py (about 400 lines)
#!/usr/bin/env python3
"""crawler_access.py — show which official AI/search crawlers a robots.txt allows.

Usage:
  python3 crawler_access.py fixtures/before
  python3 crawler_access.py --robots path/to/robots.txt [--llms path/to/llms.txt]

Evaluates a fixed matrix of operator-documented tokens against the file,
using Google's robots.txt matching: the most specific (longest) matching
User-agent group wins; * is used only when no named group matches. For a
path, the longest matching Allow/Disallow rule wins; a tie prefers Allow.

This does not fetch the live site, does not check IP ranges, and does not
claim a robots.txt rule will be honored. User-triggered fetchers are listed
separately because some operators say robots.txt may not apply to them.

Token purposes in TOKENS are as of 14 Nov 2026, from each operator's
documented crawler page (also summarized in PolyDraft's robots.txt guide).
"""

from __future__ import annotations

import argparse
import sys
from dataclasses import dataclass, field
from pathlib import Path

# purpose: search | training | control | user
# control = a robots.txt token read by an existing crawler, not a User-agent of its own
TOKENS: list[dict[str, str]] = [
    # Search
    {"token": "Googlebot", "purpose": "search", "product": "Google Search",
     "robots": "follows", "note": "also feeds AI Overviews and AI Mode"},
    {"token": "OAI-SearchBot", "purpose": "search", "product": "ChatGPT search",
     "robots": "follows", "note": "ChatGPT search results; not GPTBot"},
    {"token": "Claude-SearchBot", "purpose": "search", "product": "Claude search",
     "robots": "follows", "note": ""},
    {"token": "PerplexityBot", "purpose": "search", "product": "Perplexity search",
     "robots": "follows", "note": "not used to train foundation models, per Perplexity"},
    {"token": "Applebot", "purpose": "search", "product": "Apple search (Siri, Spotlight)",
     "robots": "follows", "note": ""},
    # Training / archive
    {"token": "GPTBot", "purpose": "training", "product": "OpenAI training",
     "robots": "follows", "note": "training opt-out; does not control ChatGPT search"},
    {"token": "ClaudeBot", "purpose": "training", "product": "Anthropic training",
     "robots": "follows", "note": ""},
    {"token": "CCBot", "purpose": "training", "product": "Common Crawl",
     "robots": "follows", "note": "common in 'block AI' snippets"},
    {"token": "Bytespider", "purpose": "training", "product": "ByteDance",
     "robots": "follows", "note": "common in 'block AI' snippets"},
    {"token": "meta-externalagent", "purpose": "training", "product": "Meta AI training",
     "robots": "follows", "note": ""},
    # Control tokens (not a distinct crawler user-agent)
    {"token": "Google-Extended", "purpose": "control", "product": "Gemini training and grounding",
     "robots": "token", "note": "token, not a crawler; no effect on Google Search"},
    {"token": "Applebot-Extended", "purpose": "control", "product": "Apple generative training",
     "robots": "token", "note": "token, not a crawler; does not hide Apple search"},
    # User-triggered
    {"token": "ChatGPT-User", "purpose": "user", "product": "ChatGPT user-triggered fetch",
     "robots": "may-not-apply", "note": "OpenAI: robots.txt rules may not apply"},
    {"token": "Claude-User", "purpose": "user", "product": "Claude user-triggered fetch",
     "robots": "follows", "note": "Anthropic says its bots honor robots.txt"},
    {"token": "Perplexity-User", "purpose": "user", "product": "Perplexity user-triggered fetch",
     "robots": "may-not-apply", "note": "Perplexity: generally ignores robots.txt"},
]

# Historical names that still show up in generated "block AI" files.
STALE_TOKENS = {
    "anthropic-ai": "current Anthropic tokens are ClaudeBot, Claude-SearchBot, Claude-User",
    "claude-web": "current Anthropic tokens are ClaudeBot, Claude-SearchBot, Claude-User",
    "chatgpt-user / 1.0": None,  # placeholder ignored
}


@dataclass
class Rule:
    kind: str  # allow | disallow
    path: str


@dataclass
class Group:
    agents: list[str] = field(default_factory=list)
    rules: list[Rule] = field(default_factory=list)


def parse_robots(text: str) -> tuple[list[Group], list[str], list[str]]:
    """Return (groups, sitemap urls, named user-agent tokens found)."""
    groups: list[Group] = []
    sitemaps: list[str] = []
    current: Group | None = None
    saw_rule = False

    def start_group() -> Group:
        nonlocal current, saw_rule
        current = Group()
        groups.append(current)
        saw_rule = False
        return current

    for raw in text.splitlines():
        line = raw.strip()
        if not line or line.startswith("#"):
            continue
        if ":" not in line:
            continue
        field, _, value = line.partition(":")
        key = field.strip().lower()
        value = value.strip()
        if key == "user-agent":
            if current is None or saw_rule:
                start_group()
            assert current is not None
            if value:
                current.agents.append(value)
        elif key in {"allow", "disallow"}:
            if current is None:
                start_group()
            assert current is not None
            current.rules.append(Rule(key, value))
            saw_rule = True
        elif key == "sitemap":
            if value:
                sitemaps.append(value)
        # Ignore Crawl-delay, Host, Content-signal, and other extensions.

    named = []
    for g in groups:
        for a in g.agents:
            if a != "*":
                named.append(a)
    return groups, sitemaps, named


def _agent_match_length(agent_line: str, token: str) -> int:
    """Longest matching product-token length, or 0. Exact, case-insensitive."""
    a = agent_line.strip().lower()
    t = token.strip().lower()
    if a == "*":
        return 0  # handled separately
    if t == a:
        return len(a)
    return 0


def select_group(groups: list[Group], token: str) -> tuple[Group | None, str]:
    """Pick the most specific matching group. Returns (group, label)."""
    best_len = -1
    matched: list[Group] = []
    for g in groups:
        length = 0
        for a in g.agents:
            length = max(length, _agent_match_length(a, token))
        if length > 0:
            if length > best_len:
                best_len = length
                matched = [g]
            elif length == best_len:
                matched.append(g)
    if matched:
        if len(matched) == 1:
            return matched[0], next(
                a for a in matched[0].agents if _agent_match_length(a, token) == best_len
            )
        # Same-length matches: merge rules, Google-style.
        merged = Group(agents=[token], rules=[r for g in matched for r in g.rules])
        return merged, token + " (merged)"

    star = [g for g in groups if any(a.strip() == "*" for a in g.agents)]
    if not star:
        return None, "(no matching group)"
    if len(star) == 1:
        return star[0], "*"
    merged = Group(agents=["*"], rules=[r for g in star for r in g.rules])
    return merged, "*"


def rule_matches(rule_path: str, url_path: str) -> bool:
    if rule_path == "":
        return False
    # Prefix match, as in Google's robots.txt spec. A trailing $ is end-anchor.
    path = rule_path
    anchored = False
    if path.endswith("$"):
        anchored = True
        path = path[:-1]
    if not url_path.startswith(path):
        return False
    if anchored and url_path != path:
        return False
    return True


def allowed(group: Group | None, url_path: str = "/") -> bool:
    if group is None:
        return True  # no rules for this agent: allow
    applicable: list[Rule] = []
    for r in group.rules:
        if r.path == "" and r.kind == "disallow":
            # "Disallow:" with no path means allow all, and is not a match.
            continue
        if r.path == "" and r.kind == "allow":
            continue
        if rule_matches(r.path, url_path):
            applicable.append(r)
    if not applicable:
        return True
    best_len = max(len(r.path.rstrip("$")) for r in applicable)
    top = [r for r in applicable if len(r.path.rstrip("$")) == best_len]
    if any(r.kind == "allow" for r in top):
        return True
    return False


def assess_llms(path: Path | None) -> tuple[str, list[str]]:
    if path is None or not path.is_file():
        return "missing", ["optional; Google Search does not use this file"]
    text = path.read_text(encoding="utf-8", errors="replace")
    notes = []
    if not text.strip():
        return "empty", ["file is present but empty"]
    has_heading = any(ln.startswith("# ") for ln in text.splitlines())
    has_link = any("](" in ln or ln.strip().startswith("http") for ln in text.splitlines())
    if not has_heading:
        notes.append("no Markdown heading")
    if not has_link:
        notes.append("no links to source pages")
    status = "present" if has_heading and has_link else "present, incomplete"
    if has_heading and has_link:
        notes.append("has a heading and at least one link")
    notes.append("optional; Google Search does not use this file")
    return status, notes


def fmt_block(allowed_flag: bool) -> str:
    return "ALLOW" if allowed_flag else "BLOCK"


def inspect(robots_path: Path, llms_path: Path | None, path: str = "/") -> str:
    text = robots_path.read_text(encoding="utf-8", errors="replace")
    groups, sitemaps, named = parse_robots(text)
    lines: list[str] = []
    lines.append(f"crawler-access  robots.txt  {robots_path}")
    if llms_path is None:
        lines.append("                llms.txt    MISSING")
    elif llms_path.is_file():
        lines.append(f"                llms.txt    {llms_path}")
    else:
        lines.append(f"                llms.txt    MISSING ({llms_path})")
    if sitemaps:
        for i, s in enumerate(sitemaps):
            prefix = "                Sitemap:    " if i == 0 else "                            "
            lines.append(prefix + s)
    else:
        lines.append("                Sitemap:    (none)")
    lines.append("")
    lines.append(f"POLICY MATRIX  (path {path})")
    lines.append("")

    results: dict[str, dict] = {}
    for spec in TOKENS:
        group, label = select_group(groups, spec["token"])
        ok = allowed(group, path)
        results[spec["token"]] = {"allow": ok, "group": label, **spec}

    sections = [
        ("SEARCH (blocking these can hide the site from that assistant's results)", "search"),
        ("TRAINING / CONTROL (a block is a policy choice, not a visibility bug by itself)", ("training", "control")),
        ("USER-TRIGGERED (robots.txt may not apply; an edge rule is the hard block)", "user"),
    ]

    for title, purposes in sections:
        lines.append(f"  {title}")
        want = {purposes} if isinstance(purposes, str) else set(purposes)
        for spec in TOKENS:
            if spec["purpose"] not in want:
                continue
            r = results[spec["token"]]
            note = spec["note"]
            extra = f"   {note}" if note else ""
            lines.append(
                f"    {spec['token']:<22} {fmt_block(r['allow']):<5}  group={r['group']:<22}{extra}"
            )
        lines.append("")

    search = [t for t in TOKENS if t["purpose"] == "search"]
    training = [t for t in TOKENS if t["purpose"] in {"training", "control"}]
    s_block = [t["token"] for t in search if not results[t["token"]]["allow"]]
    t_block = [t["token"] for t in training if not results[t["token"]]["allow"]]
    s_allow = [t["token"] for t in search if results[t["token"]]["allow"]]

    llms_status, llms_notes = assess_llms(llms_path)

    stale_found = []
    for name in named:
        key = name.strip().lower()
        if key in STALE_TOKENS and STALE_TOKENS[key]:
            stale_found.append((name, STALE_TOKENS[key]))

    lines.append("SUMMARY")
    lines.append(
        f"  search blocked     {len(s_block)} of {len(search)}"
        + (f"   {', '.join(s_block)}" if s_block else "   (none)")
    )
    lines.append(
        f"  search allowed     {len(s_allow)} of {len(search)}"
        + (f"   {', '.join(s_allow)}" if s_allow else "")
    )
    lines.append(
        f"  training blocked   {len(t_block)} of {len(training)}"
        + (f"   {', '.join(t_block)}" if t_block else "   (none)")
    )
    lines.append(
        f"  sitemap            {'present' if sitemaps else 'missing'}"
    )
    lines.append(f"  llms.txt           {llms_status}  ({'; '.join(llms_notes)})")
    if stale_found:
        names = ", ".join(n for n, _ in stale_found)
        why = stale_found[0][1]
        lines.append(f"  stale tokens       {names}  ({why})")
    else:
        lines.append("  stale tokens       (none)")
    lines.append("")
    lines.append("VERDICT")
    if s_block:
        lines.append("  The rules block one or more AI search crawlers.")
        lines.append(
            "  " + ", ".join(s_block) + " will not fetch this path, so that assistant's search can omit the site."
        )
        lines.append("  Training blocks are a separate decision and are not counted as a visibility bug.")
    else:
        lines.append("  All five search crawlers in the matrix are allowed on this path.")
        if t_block:
            lines.append("  Training / control opt-outs are in place and do not hide the site from search.")
        if sitemaps:
            lines.append("  A Sitemap directive is present.")
        else:
            lines.append("  No Sitemap directive is present; add one if you have a sitemap.")
    return "\n".join(lines) + "\n"


def self_check() -> None:
    sample = (
        "User-agent: GPTBot\n"
        "Disallow: /\n"
        "\n"
        "User-agent: *\n"
        "Allow: /\n"
    )
    groups, _, _ = parse_robots(sample)
    g, label = select_group(groups, "GPTBot")
    assert label.lower() == "gptbot" and allowed(g, "/") is False, (label, allowed(g, "/"))
    g, label = select_group(groups, "Googlebot")
    assert label == "*" and allowed(g, "/") is True, (label, allowed(g, "/"))
    g, label = select_group(groups, "OAI-SearchBot")
    assert label == "*" and allowed(g, "/") is True


def resolve_paths(target: str, robots: str | None, llms: str | None) -> tuple[Path, Path | None]:
    if robots:
        rp = Path(robots)
        lp = Path(llms) if llms else None
        return rp, lp
    root = Path(target)
    if root.is_file() and root.name.lower() == "robots.txt":
        return root, (root.parent / "llms.txt" if (root.parent / "llms.txt").is_file() else None)
    if not root.is_dir():
        raise SystemExit(f"not a directory or robots.txt: {root}")
    rp = root / "robots.txt"
    if not rp.is_file():
        # also accept public/ or static/
        for alt in (root / "public" / "robots.txt", root / "static" / "robots.txt"):
            if alt.is_file():
                rp = alt
                break
        else:
            raise SystemExit(f"no robots.txt under {root}")
    lp = None
    for cand in (root / "llms.txt", rp.parent / "llms.txt"):
        if cand.is_file():
            lp = cand
            break
    return rp, lp


def main(argv: list[str] | None = None) -> int:
    self_check()
    p = argparse.ArgumentParser(description=__doc__, formatter_class=argparse.RawDescriptionHelpFormatter)
    p.add_argument("target", nargs="?", default=".", help="directory containing robots.txt, or a robots.txt path")
    p.add_argument("--robots", help="explicit path to robots.txt")
    p.add_argument("--llms", help="explicit path to llms.txt")
    p.add_argument("--path", default="/", help="URL path to evaluate (default: /)")
    args = p.parse_args(argv)
    rp, lp = resolve_paths(args.target, args.robots, args.llms)
    sys.stdout.write(inspect(rp, lp, args.path))
    return 0


if __name__ == "__main__":
    raise SystemExit(main())
Enter fullscreen mode Exit fullscreen mode

Run 1: the comment said training, the rules also hid AI search

$ python3 crawler_access.py fixtures/before
crawler-access  robots.txt  fixtures/before/robots.txt
                llms.txt    MISSING
                Sitemap:    (none)

POLICY MATRIX  (path /)

  SEARCH (blocking these can hide the site from that assistant's results)
    Googlebot              ALLOW  group=*                        also feeds AI Overviews and AI Mode
    OAI-SearchBot          BLOCK  group=OAI-SearchBot            ChatGPT search results; not GPTBot
    Claude-SearchBot       BLOCK  group=Claude-SearchBot      
    PerplexityBot          BLOCK  group=PerplexityBot            not used to train foundation models, per Perplexity
    Applebot               ALLOW  group=*                     

  TRAINING / CONTROL (a block is a policy choice, not a visibility bug by itself)
    GPTBot                 BLOCK  group=GPTBot                   training opt-out; does not control ChatGPT search
    ClaudeBot              BLOCK  group=ClaudeBot             
    CCBot                  BLOCK  group=CCBot                    common in 'block AI' snippets
    Bytespider             BLOCK  group=Bytespider               common in 'block AI' snippets
    meta-externalagent     BLOCK  group=meta-externalagent    
    Google-Extended        BLOCK  group=Google-Extended          token, not a crawler; no effect on Google Search
    Applebot-Extended      BLOCK  group=Applebot-Extended        token, not a crawler; does not hide Apple search

  USER-TRIGGERED (robots.txt may not apply; an edge rule is the hard block)
    ChatGPT-User           BLOCK  group=ChatGPT-User             OpenAI: robots.txt rules may not apply
    Claude-User            BLOCK  group=Claude-User              Anthropic says its bots honor robots.txt
    Perplexity-User        ALLOW  group=*                        Perplexity: generally ignores robots.txt

SUMMARY
  search blocked     3 of 5   OAI-SearchBot, Claude-SearchBot, PerplexityBot
  search allowed     2 of 5   Googlebot, Applebot
  training blocked   7 of 7   GPTBot, ClaudeBot, CCBot, Bytespider, meta-externalagent, Google-Extended, Applebot-Extended
  sitemap            missing
  llms.txt           missing  (optional; Google Search does not use this file)
  stale tokens       anthropic-ai, Claude-Web  (current Anthropic tokens are ClaudeBot, Claude-SearchBot, Claude-User)

VERDICT
  The rules block one or more AI search crawlers.
  OAI-SearchBot, Claude-SearchBot, PerplexityBot will not fetch this path, so that assistant's search can omit the site.
  Training blocks are a separate decision and are not counted as a visibility bug.
Enter fullscreen mode Exit fullscreen mode

The first run reports 3 of 5 search crawlers blocked, 2 allowed, and every training token blocked.

Terminal output of crawler-access on the Bramble Books fixture, before and after rewriting robots.txt. The first run reports 3 of 5 search crawlers blocked.

3 of 5 search crawlers blocked: OAI-SearchBot, Claude-SearchBot and PerplexityBot. Googlebot and Applebot allowed, because they were not named and the wildcard group says Allow: /. All 7 training and control tokens blocked, which was the stated goal. Sitemap missing. llms.txt missing. Two stale Anthropic names.

The visibility bug is the three search tokens. The training blocks are not a bug.

Why a single "AI crawlers" list is the wrong tool

AI access comes in three kinds, and each one needs its own decision:

  • Training crawlers (GPTBot, ClaudeBot, CCBot, and similar) collect content that may be used to train models. A Disallow is a training opt-out. It does not, by itself, remove you from that operator's search results.
  • Search crawlers (OAI-SearchBot, Claude-SearchBot, PerplexityBot, Googlebot, Applebot) build the index an assistant or a search engine cites from. Blocking one can hide the site from that product. Googlebot also feeds Google's AI Overviews and AI Mode.
  • User-triggered fetchers (ChatGPT-User, Claude-User, Perplexity-User) visit a page because someone asked an assistant about it. Some operators say robots.txt may not apply to them. If you need a hard block, put it at the edge.

Two more names in the file are not crawlers at all. Google-Extended is a robots.txt token that Google's existing crawlers read as a control for Gemini training and grounding. It has no effect on Google Search inclusion. Applebot-Extended is the same idea for Apple's generative training. Blocking either is a training decision, not a search decision.

If you use a host that can prepend a managed robots.txt from an "AI crawler" policy, read whether that policy is for training, search or agents before you flip it. Then fetch the file the host actually serves, not only the one in the repo.

Diagram of three AI-access decisions — search, training and user-triggered — and which official robots.txt tokens belong to each.

Run 2: the same training opt-out, with search allowed

I kept every training and control Disallow. I removed the search crawlers and the user-triggered fetchers from the block list. I added a Sitemap: line. I added a short llms.txt as a curated map of the pages a shop owner would actually want cited, not as an SEO trick.

# Policy for Bramble Books, written on purpose.
# Allow search crawlers. Opt out of training.
# Search and training use different user-agent tokens; a training
# Disallow does not hide the site from that operator's search.

User-agent: GPTBot
Disallow: /

User-agent: ClaudeBot
Disallow: /

User-agent: Google-Extended
Disallow: /

User-agent: Applebot-Extended
Disallow: /

User-agent: CCBot
Disallow: /

User-agent: Bytespider
Disallow: /

User-agent: meta-externalagent
Disallow: /

User-agent: *
Allow: /

Sitemap: https://bramblebooks.example/sitemap.xml
Enter fullscreen mode Exit fullscreen mode

I ran the same checker on the new tree.

$ python3 crawler_access.py fixtures/after
crawler-access  robots.txt  fixtures/after/robots.txt
                llms.txt    fixtures/after/llms.txt
                Sitemap:    https://bramblebooks.example/sitemap.xml

POLICY MATRIX  (path /)

  SEARCH (blocking these can hide the site from that assistant's results)
    Googlebot              ALLOW  group=*                        also feeds AI Overviews and AI Mode
    OAI-SearchBot          ALLOW  group=*                        ChatGPT search results; not GPTBot
    Claude-SearchBot       ALLOW  group=*                     
    PerplexityBot          ALLOW  group=*                        not used to train foundation models, per Perplexity
    Applebot               ALLOW  group=*                     

  TRAINING / CONTROL (a block is a policy choice, not a visibility bug by itself)
    GPTBot                 BLOCK  group=GPTBot                   training opt-out; does not control ChatGPT search
    ClaudeBot              BLOCK  group=ClaudeBot             
    CCBot                  BLOCK  group=CCBot                    common in 'block AI' snippets
    Bytespider             BLOCK  group=Bytespider               common in 'block AI' snippets
    meta-externalagent     BLOCK  group=meta-externalagent    
    Google-Extended        BLOCK  group=Google-Extended          token, not a crawler; no effect on Google Search
    Applebot-Extended      BLOCK  group=Applebot-Extended        token, not a crawler; does not hide Apple search

  USER-TRIGGERED (robots.txt may not apply; an edge rule is the hard block)
    ChatGPT-User           ALLOW  group=*                        OpenAI: robots.txt rules may not apply
    Claude-User            ALLOW  group=*                        Anthropic says its bots honor robots.txt
    Perplexity-User        ALLOW  group=*                        Perplexity: generally ignores robots.txt

SUMMARY
  search blocked     0 of 5   (none)
  search allowed     5 of 5   Googlebot, OAI-SearchBot, Claude-SearchBot, PerplexityBot, Applebot
  training blocked   7 of 7   GPTBot, ClaudeBot, CCBot, Bytespider, meta-externalagent, Google-Extended, Applebot-Extended
  sitemap            present
  llms.txt           present  (has a heading and at least one link; optional; Google Search does not use this file)
  stale tokens       (none)

VERDICT
  All five search crawlers in the matrix are allowed on this path.
  Training / control opt-outs are in place and do not hide the site from search.
  A Sitemap directive is present.
Enter fullscreen mode Exit fullscreen mode

0 of 5 search crawlers blocked. All five allowed. The 7 training and control opt-outs are unchanged. Sitemap present. llms.txt present, with a heading and links.

Table comparing search-crawler access, training opt-outs, sitemap and llms.txt on the Bramble Books fixture, before and after the robots.txt rewrite. Search blocks fall from 3 of 5 to 0 of 5.

llms.txt is optional. Google has said Search does not use these files, and that having one neither helps nor hurts visibility or ranking there. I added one because a short, maintained map can help a tool or agent you actually care about. If you want a copyable shape and a way to check it, we published an llms.txt example and the validation steps we use.

What I would do with a real repo

If I were handed a vibe-coded marketing site tomorrow, I would check this before I pointed a domain at it:

  1. Fetch the robots.txt the production host actually serves, not only the file in the repo. Some hosts prepend managed rules.
  2. Run this checker on that file. Treat every search BLOCK as a visibility bug unless you meant to hide the site from that assistant.
  3. Decide training separately. Leaving GPTBot or ClaudeBot disallowed is a policy choice. It is not a substitute for a search decision, and it is not a bug by itself.
  4. Add a Sitemap: line if you have a sitemap. The before file had none.
  5. Do not treat llms.txt as a ranking lever. Add it only if you will keep the links accurate.
  6. For user-triggered fetchers, do not rely on robots.txt alone if you need a hard block.

A site built with an AI website builder still has to pass this test. The builder is doing the right kind of work if the published robots.txt is a policy you chose — search allowed or blocked on purpose, training allowed or blocked on purpose — and not a pasted list of every name that has ever been called an AI crawler. Generating the first version of the site is the cheap part. Knowing which crawlers you invited is the part that decides whether ChatGPT search can even see it.

A short rule

If you wanted to opt out of training, your robots.txt should not also Disallow the search crawler from the same company. Search, training and user-triggered access are three decisions. Run the checker on the file the host actually serves. If ChatGPT search is blocked and Google is not, you will not notice in Search Console.

Top comments (0)