Prüft eure robots.txt: Vibe-codierte Seiten blockieren oft ChatGPT Search
Ein Entwickler berichtet, dass von Coding-Agents generierte Marketing-Seiten häufig ungewollt die Crawler von ChatGPT Search aussperren. Er hat dafür einen Checker geschrieben, der robots.txt-Dateien automatisiert auf solche Blockierungen untersucht.

Ein Beitrag, den ich diese Woche auf X gesehen habe, brachte es auf den Punkt: Vibe coding verschwindet nicht. Es bekommt eine Testsuite und einen Review-Schritt, und danach nennt es niemand mehr vibe coding. Das entspricht der Arbeit, die ich tatsächlich leiste, nachdem eine Coding-Agentin eine Marketing-Seite erstellt hat. Der Review-Schritt ist meist kein cleverer Exploit. Es ist eine Datei, die der Agent geschrieben hat, als jemand "blockiere KI-Crawler davor, unsere Inhalte fürs Training zu nutzen" eingegeben hat.
Ich sehe immer wieder dasselbe Muster. Der Kommentar am Anfang der Datei spricht vom Training. Die Regeln verbieten aber auch die Crawler, die ChatGPT, Claude und Perplexity für die Suche verwenden. Die Google-Suche funktioniert weiterhin, weshalb es einen Monat lang niemandem auffällt. Die Seite ist live, die Sitemap-Zeile fehlt, und drei Assistenten-Such-Crawler wurden weggeschickt.
Es spielt keine Rolle, ob die Seite aus Cursor, Claude Code oder einem KI-Website-Builder stammt. Wenn die robots.txt "KI" als einen einzigen Behälter behandelt, trifft das zu.
Also schrieb ich die Art von robots.txt, die ein Coding-Agent für diese Eingabe erzeugt, für ein fiktives Buchhaltungsbüro namens Bramble Books. Dann schrieb ich einen kurzen Checker, crawler_access.py, der eine datierte Matrix offizieller Token auswertet, nämlich Suche, Training und benutzergesteuert, was nicht dasselbe ist, und angibt, welche davon / abrufen dürfen. Ich führte ihn aus, schrieb die Datei so um, dass das Training-Opt-out erhalten blieb und die Such-Crawler erlaubt waren, und führte ihn erneut aus. Alle Zahlen unten stammen aus diesen beiden Durchläufen.
Bramble Books ist fiktiv. Das Büro macht Buchhaltung für unabhängige Geschäfte in Portland. Das Repository sieht aus wie eine typische generierte Marketing-Seite. Die Datei, auf die es hier ankommt, ist robots.txt.
Die Eingabe, die ich als Vorlage verwende, ist die, die Menschen tatsächlich eintippen: "Füge eine robots.txt hinzu, die KI-Crawler daran hindert, unsere Inhalte fürs Training zu nutzen." Die Datei unten ist die Art von Antwort, die diese Eingabe erzeugt. Der Kommentar handelt vom Training. Die Liste ist der übliche Klumpen von Namen aus einem öffentlichen "Block-AI-Crawler"-Schnipsel.
# 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 Es gibt keine Sitemap:-Zeile. Es gibt keine llms.txt.
Googlebot wird nicht namentlich genannt, fällt also auf User-agent: * zurück und ist erlaubt. Deshalb ist das leicht zu übersehen: Die Google-Suche funktioniert weiterhin.
OpenAI dokumentiert GPTBot für Training und OAI-SearchBot für die ChatGPT-Suche als getrennte Token. Anthropic macht dasselbe mit ClaudeBot und Claude-SearchBot. Ein Disallow für den Training-Token ist eine Policy-Entscheidung. Ein Disallow für den Such-Token kann die Seite aus den Ergebnissen dieses Assistenten verschwinden lassen. Ich verwendete die Token-Liste mit Stand vom 14. November 2026 von den eigenen Crawler-Seiten der Betreiber. Wir führen eine datierte Tabelle dieser Namen in unseren robots.txt-Beispielen für Such- und KI-Crawler, weil sich die Namen ändern und alte Gists es nicht tun.
Die Datei nennt außerdem anthropic-ai und Claude-Web. Das sind historische Token. Sie stehen nicht für Claude-SearchBot.
crawler_access.py liest eine robots.txt und optional eine llms.txt, wenn man sie übergibt, und wertet eine feste Matrix offizieller Token gegen einen Pfad, standardmäßig /, aus.
Das Skript folgt Googles Matching-Regeln: die spezifischste (längste) passende User-agent-Gruppe gewinnt, und * wird nur verwendet, wenn keine benannte Gruppe passt. Für den Pfad gewinnt die längste passende Allow- oder Disallow-Regel; bei Gleichstand gewinnt Allow. Eine benannte Gruppe erbt nicht die Regeln der *-Gruppe, und * greift nicht mehr, sobald eine benannte Gruppe passt.
Es ruft die Live-Seite nicht ab, prüft keine IP-Bereiche und behauptet nicht, dass ein Crawler die Datei respektiert. Benutzergesteuerte Abrufe bekommen einen eigenen Abschnitt, weil OpenAI und Perplexity sagen, dass robots.txt für sie möglicherweise nicht gilt. Eine harte Sperre gehört an den Rand des Netzwerks.
crawler_access.py (etwa 400 Zeilen) #!/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.
Dies ruft die Live-Seite nicht ab, prüft keine IP-Bereiche und behauptet nicht, dass eine robots.txt-Regel respektiert wird. Benutzergesteuerte Abrufe werden separat aufgeführt, weil einige Betreiber sagen, dass robots.txt für sie möglicherweise nicht gilt. Die Token-Zwecke in TOKENS entsprechen dem Stand vom 14. November 2026 von der jeweils dokumentierten Crawler-Seite jedes Betreibers (auch zusammengefasst in PolyDrafts robots.txt-Leitfaden).
""" from __future__ import annotations import argparse import sys from dataclasses import dataclass, field from pathlib import Path # purpose: search | training | control | user # control = ein robots.txt-Token, das von einem bestehenden Crawler gelesen wird, kein eigenes User-agent TOKENS: list [ dict [ str, str ] ] = [ # Search { "token": "Googlebot", "purpose": "search", "product": "Google Search", "robots": "follows", "note": "speist auch AI Overviews und AI Mode" }, { "token": "OAI-SearchBot", "purpose": "search", "product": "ChatGPT search", "robots": "follows", "note": "ChatGPT-Suchergebnisse; nicht GPTBot" }, { "token": "Claude-SearchBot", "purpose": "search", "product": "Claude search", "robots": "follows", "note": "" }, { "token": "PerplexityBot", "purpose": "search", "product": "Perplexity search", "robots": "follows", "note": "wird laut Perplexity nicht zum Training von Foundation-Modellen verwendet" }, { "token": "Applebot", "purpose": "search", "product": "Apple-Suche (Siri, Spotlight)", "robots": "follows", "note": "" }, # Training / Archiv { "token": "GPTBot", "purpose": "training", "product": "OpenAI training", "robots": "follows", "note": "Training-Opt-out; steuert nicht ChatGPT search" }, { "token": "ClaudeBot", "purpose": "training", "product": "Anthropic training", "robots": "follows", "note": "" }, { "token": "CCBot", "purpose": "training", "product": "Common Crawl", "robots": "follows", "note": "haeufig in 'block AI'-Snippets" }, { "token": "Bytespider", "purpose": "training", "product": "ByteDance", "robots": "follows", "note": "haeufig in 'block AI'-Snippets" }, { "token": "meta-externalagent", "purpose": "training", "product": "Meta AI training", "robots": "follows", "note": "" }, # Control-Tokens (kein eigenstaendiger Crawler-User-agent) { "token": "Google-Extended", "purpose": "control", "product": "Gemini-Training und Grounding", "robots": "token", "note": "Token, kein Crawler; keine Auswirkung auf Google Search" }, { "token": "Applebot-Extended", "purpose": "control", "product": "Apple-Training fuer generative KI", "robots": "token", "note": "Token, kein Crawler; versteckt nicht die Apple-Suche" }, # Vom Nutzer ausgeloest { "token": "ChatGPT-User", "purpose": "user", "product": "ChatGPT nutzerausgeloester Abruf", "robots": "may-not-apply", "note": "OpenAI: robots.txt-Regeln gelten moeglicherweise nicht" }, { "token": "Claude-User", "purpose": "user", "product": "Claude nutzerausgeloester Abruf", "robots": "follows", "note": "Anthropic gibt an, dass seine Bots robots.txt beachten" }, { "token": "Perplexity-User", "purpose": "user", "product": "Perplexity nutzerausgeloester Abruf", "robots": "may-not-apply", "note": "Perplexity: ignoriert robots.txt in aller Regel" }, ] # Historische Namen, die weiterhin in generierten "block AI"-Dateien auftauchen. STALE_TOKENS = { "anthropic-ai": "aktuelle Anthropic-Tokens sind ClaudeBot, Claude-SearchBot, Claude-User", "claude-web": "aktuelle Anthropic-Tokens sind ClaudeBot, Claude-SearchBot, Claude-User", "chatgpt-user / 1.0": None, # Platzhalter, wird ignoriert } @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 ] ]: """Liefert (Gruppen, Sitemap-URLs, gefundene benannte User-agent-Tokens).""" 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 ) # Crawl-delay, Host, Content-signal und andere Erweiterungen werden ignoriert. 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: """Laenge des am besten uebereinstimmenden Produkt-Tokens, sonst 0. Exakt und Gross-/Kleinschreibung ignorierend.""" a = agent_line. strip ( ). lower ( ) t = token. strip ( ). lower ( ) if a == "*": return 0 # wird separat behandelt if t == a: return len ( a ) return 0 def select_group ( groups: list [ Group ], token: str ) -> tuple [ Group | None, str ]: """Waehlt die spezifischste uebereinstimmende Gruppe.
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
$ python3 crawler_access.py fixtures/before crawler-access robots.txt fixtures/before/robots.txt llms.txt MISSING Sitemap: (none) POLICY MATRIX (Pfad /) SEARCH (durch Blockieren dieser Bots kann die Website aus den Ergebnissen des jeweiligen Assistenten verschwinden) Googlebot ALLOW group=* speist auch AI Overviews und AI Mode OAI-SearchBot BLOCK group=OAI-SearchBot ChatGPT-Suchergebnisse; nicht GPTBot Claude-SearchBot BLOCK group=Claude-SearchBot PerplexityBot BLOCK group=PerplexityBot wird laut Perplexity nicht zum Training von Foundation-Modellen verwendet Applebot ALLOW group=* TRAINING / CONTROL (ein Block ist eine Richtlinienentscheidung, für sich genommen kein Sichtbarkeitsproblem) GPTBot BLOCK group=GPTBot Opt-out vom Training; steuert nicht die ChatGPT-Suche ClaudeBot BLOCK group=ClaudeBot CCBot BLOCK group=CCBot häufig in 'block AI'-Snippets Bytespider BLOCK group=Bytespider häufig in 'block AI'-Snippets meta-externalagent BLOCK group=meta-externalagent Google-Extended BLOCK group=Google-Extended Token, kein Crawler; ohne Auswirkung auf die Google Search Applebot-Extended BLOCK group=Applebot-Extended Token, kein Crawler; verbirgt nicht die Apple-Suche USER-TRIGGERED (robots.txt greift womöglich nicht; eine Edge-Regel ist der harte Block) ChatGPT-User BLOCK group=ChatGPT-User OpenAI: robots.txt-Regeln greifen möglicherweise nicht Claude-User BLOCK group=Claude-User Anthropic gibt an, dass seine Bots robots.txt respektieren Perplexity-User ALLOW group=* Perplexity: ignoriert robots.txt grundsätzlich 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; die Google Search verwendet diese Datei nicht) stale tokens anthropic-ai, Claude-Web (die aktuellen Anthropic-Tokens sind ClaudeBot, Claude-SearchBot, Claude-User) VERDICT Die Regeln blockieren einen oder mehrere KI-Suchcrawler. OAI-SearchBot, Claude-SearchBot und PerplexityBot rufen diesen Pfad nicht ab, sodass die Suche des jeweiligen Assistenten die Website weglassen kann. Trainings-Blocks sind eine separate Entscheidung und zählen nicht als Sichtbarkeitsproblem.
Vollbildmodus öffnen Vollbildmodus beenden Der erste Durchlauf meldet 3 von 5 Suchcrawlern blockiert, 2 erlaubt und sämtliche Trainings-Tokens blockiert.
3 von 5 Suchcrawlern blockiert: OAI-SearchBot, Claude-SearchBot und PerplexityBot. Googlebot und Applebot erlaubt, weil sie nicht namentlich genannt wurden und die Wildcard-Gruppe Allow: / vorgibt. Alle 7 Trainings- und Kontroll-Tokens blockiert, was das erklärte Ziel war. Sitemap fehlt. llms.txt fehlt. Zwei veraltete Anthropic-Namen.
Das Sichtbarkeitsproblem sind die drei Such-Tokens. Die Trainings-Blocks sind kein Fehler.
KI-Zugriff kommt in drei Arten, und jede davon erfordert eine eigene Entscheidung:
Zwei weitere Namen in der Datei sind überhaupt keine Crawler. Google-Extended ist ein robots.txt-Token, das Googles bestehende Crawler als Steuerung für Gemini-Training und Grounding lesen. Es hat keinerlei Auswirkung auf die Aufnahme in die Google Search. Applebot-Extended verfolgt dieselbe Idee für Apples generatives Training. Eines dieser beiden zu blockieren ist eine Trainingsentscheidung, keine Suchentscheidung.
Wenn Ihr Hoster eine verwaltete robots.txt aus einer KI-Crawler-Richtlinie voranstellen kann, lesen Sie nach, ob diese Richtlinie für Training, Suche oder Agents gedacht ist, bevor Sie sie aktivieren. Rufen Sie anschließend die Datei ab, die der Hoster tatsächlich ausliefert, nicht nur die im Repository.
Ich habe alle Trainings- und Kontroll-Disallows beibehalten. Ich habe die Suchcrawler und die nutzergesteuerten Abrufer von der Blockliste entfernt. Ich habe eine Sitemap-Zeile ergänzt. Ich habe eine kurze llms.txt als kuratierte Übersicht der Seiten hinzugefügt, die ein Shopbetreiber tatsächlich zitiert haben möchte, und nicht als SEO-Trick.
# Policy für Bramble Books, bewusst formuliert. # Suchcrawler erlauben. Vom Training abmelden. # Suche und Training nutzen verschiedene User-Agent-Tokens; ein # Trainings-Disallow verbirgt die Website nicht vor der Suche desselben Anbieters. 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 Vollbildmodus öffnen Vollbildmodus beenden Ich habe denselben Checker auf den neuen Baum angewendet.
$ 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 (Pfad /) SEARCH (durch Blockieren dieser Bots kann die Website aus den Ergebnissen des jeweiligen Assistenten verschwinden) Googlebot ALLOW group=* speist auch AI Overviews und AI Mode OAI-SearchBot ALLOW group=* ChatGPT-Suchergebnisse; nicht GPTBot Claude-SearchBot ALLOW group=* PerplexityBot ALLOW group=* wird laut Perplexity nicht zum Training von Foundation-Modellen verwendet Applebot ALLOW group=* TRAINING / CONTROL (ein Block ist eine Richtlinienentscheidung, für sich genommen kein Sichtbarkeitsproblem) GPTBot BLOCK group=GPTBot Opt-out vom Training; steuert nicht die ChatGPT-Suche ClaudeBot BLOCK group=ClaudeBot CCBot BLOCK group=CCBot häufig in 'block AI'-Snippets Bytespider BLOCK group=Bytespider häufig in 'block AI'-Snippets meta-externalagent BLOCK group=meta-externalagent Google-Extended BLOCK group=Google-Extended Token, kein Crawler; ohne Auswirkung auf die Google Search Applebot-Extended BLOCK group=Applebot-Extended Token, kein Crawler; verbirgt nicht die Apple-Suche USER-TRIGGERED (robots.txt greift womöglich nicht; eine Edge-Regel ist der harte Block) ChatGPT-User ALLOW group=* OpenAI: robots.txt-Regeln greifen möglicherweise nicht Claude-User ALLOW group=* Anthropic gibt an, dass seine Bots robots.txt respektieren Perplexity-User ALLOW group=* Perplexity: ignoriert robots.txt grundsätzlich 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 (enthält eine Überschrift und mindestens einen Link; optional; die Google Search verwendet diese Datei nicht) stale tokens (none) VERDICT Alle fünf Suchcrawler in der Matrix sind auf diesem Pfad erlaubt. Die Trainings- bzw. Kontroll-Opt-outs sind vorhanden und verbergen die Website nicht vor der Suche. Eine Sitemap-Direktive ist vorhanden.
Vollbildmodus öffnen Vollbildmodus beenden 0 von 5 Suchcrawlern blockiert. Alle fünf erlaubt. Die 7 Trainings- und Kontroll-Opt-outs sind unverändert.
Sitemap vorhanden. llms.txt vorhanden, mit Überschrift und Links.
llms.txt ist optional. Google hat mitgeteilt, dass die Search diese Dateien nicht verwendet und dass das Vorhandensein einer solchen Datei Sichtbarkeit oder Ranking dort weder verbessert noch verschlechtert. Ich habe eine hinzugefügt, weil eine kurze, gepflegte Übersicht einem Tool oder Agent helfen kann, dem Sie tatsächlich Aufmerksamkeit schenken. Wer eine kopierbare Vorlage und eine Möglichkeit zur Prüfung sucht, findet bei uns ein llms.txt-Beispiel samt der Validierungsschritte, die wir verwenden.
Würde mir morgen eine per Vibe-Coding erstellte Marketing-Site übergeben, würde ich dies prüfen, bevor ich eine Domain darauf zeigen lasse:
Eine Website, die mit einem KI-Website-Builder erstellt wurde, muss diesen Test trotzdem bestehen. Der Builder leistet die richtige Art von Arbeit, wenn die veröffentlichte robots.txt eine Richtlinie ist, die Sie selbst gewählt haben, Suche bewusst erlaubt oder blockiert, Training bewusst erlaubt oder blockiert, und nicht eine eingefügte Liste mit jedem Namen, der je als KI-Crawler bezeichnet wurde. Die erste Version der Website zu generieren ist der billige Teil. Zu wissen, welche Crawler Sie eingeladen haben, ist der Teil, der entscheidet, ob die ChatGPT-Suche die Site überhaupt sehen kann.
Wer sich vom Training abmelden möchte, sollte in seiner robots.txt nicht zusätzlich den Suchcrawler desselben Unternehmens per Disallow aussperren. Suche, Training und nutzergesteuerter Zugriff sind drei Entscheidungen. Führen Sie den Checker auf der Datei aus, die der Hoster tatsächlich ausliefert. Wenn die ChatGPT-Suche blockiert ist und Google nicht, werden Sie es in der Search Console nicht bemerken.
Automatisch übersetzt. Das Original auf Englisch ist unten aufklappbar.
Original (Englisch) anzeigen
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.
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.
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
$ 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.
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.
AI access comes in three kinds, and each one needs its own decision:
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.
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.
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.
If I were handed a vibe-coded marketing site tomorrow, I would check this before I pointed a domain at it:
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.
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.