Warum es zählt
Robots.txt groups are not additive. A crawler obeys only the most specific group that names it and ignores the * group, so a Googlebot group that blocks only /dogs/ leaves Googlebot free to crawl the /goats/ and /cows/ that the * group blocks (Dave Smart's example at Search Central Live). One group can name several crawlers, and Google combines all groups that name the same user agent into one. In the robots.txt quiz of Google's talk, a Googlebot group with only an allow rule, or an allow rule in the * group, was the wrong answer for opening /staging/preview/ to Googlebot while keeping the rest of /staging/ closed.
So setzen Sie es um
Put the rules every crawler shares in the * group. Add a named group (Googlebot, Storebot-Google, an AI crawler token) only when that crawler needs different rules, and copy into it every rule from the * group that should still apply to it. To give several crawlers the same rules, list their user-agent lines on top of one group. Generate the file from one template so that a change to the shared rules updates every named group too.
So prüfen Sie es
For each named group, run Google's open-source robots.txt parser (github.com/google/robotstxt) with that crawler's token against a list of sample URLs covering every path the * group disallows: each result is the one intended for that crawler. For the quiz case, /staging/preview/ is allowed and /staging/other/ disallowed for Googlebot.
So deckt Regensbot sie ab
Entschieden aus einer URL.
Ein Audit liest die Antwort, die Header, das HTML, robots.txt, die Sitemaps und die Structured Data, und der Befund zeigt, was es gesehen hat.
Quellen
Google-Dokumente02
- 01How Google interprets the robots.txt specificationGoogle (öffnet in einem neuen Tab)
- 02google/robotstxtGoogle (open-source robots.txt parser and matcher library, GitHub) (öffnet in einem neuen Tab)
Aussagen in der Wissensbasis05
- D1-C533BestätigtLightning session B: Robots.txtAuf der Bühne gesagt
- D1-C531GestütztHow Google interprets robots.txtAuf der Bühne gesagt
- D1-C527GestütztHow Google interprets robots.txtAuf der Bühne gesagt
- D1-C519GestütztHow Google interprets robots.txtAuf der Bühne gesagt
- D1-C080QuelleHow Google interprets robots.txtGoogles Dokumentation
Die Aussage-IDs verweisen auf die Wissensbasis zu Search Central Live 2026. Die Wissensbasis (öffnet in einem neuen Tab)
- Bestätigt
- Googles Dokumentation sagt dasselbe.
- Gestützt
- Googles Dokumentation stützt es, ohne es auszusprechen.
- Quelle
- Die Aussage ist das zitierte Dokument selbst.