Warum es zählt
If robots.txt answers with a 5xx error, Google stops crawling the site for the first 12 hours and then relies on a cached copy for up to 30 days. robots.txt rules apply per host, so the file on www.example.com does nothing for api.example.com or a CDN host name, and the file is read only at the root of a host: a robots.txt in a subdirectory is never used.
So setzen Sie es um
Serve the file at the root path /robots.txt on every host name that serves pages or rendering resources: www, the bare domain if it answers, API, static and CDN hosts, every country subdomain. Answer 200 with the rules, or 404 if the host has no rules (Google then crawls everything). Exclude robots.txt from maintenance modes, WAF challenges and authentication, and never let an API or CDN host fall back to a blanket Disallow or an error page.
So prüfen Sie es
curl -I https://<each-host>/robots.txt returns 200 or 404, never 5xx, 401/403 or a redirect to a login page. Search Console's robots.txt report (Settings) shows each host's file as fetched.
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)
- 02Temporarily pause or disable a websiteGoogle Search Central (öffnet in einem neuen Tab)
Aussagen in der Wissensbasis04
- D1-C074QuelleHow crawling errors affect SearchGoogles Dokumentation
- D2-C209BestätigtLightning session D: Rendering and JavaScriptAuf dem Bildschirm gezeigt
- D2-C210EntfälltLightning session D: Rendering and JavaScriptEinschätzung des Autors
- D1-C515BestätigtHow Google interprets robots.txtAuf der Bühne gesagt
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.
- Quelle
- Die Aussage ist das zitierte Dokument selbst.
- Entfällt
- Nichts zu prüfen: ein Zitat, eine Einordnung, eine Meinung oder eine Analyse.