robots.txt: refuse GoogleOther - #5
Merged
Merged
Conversation
Google's non-Search crawler walked every filter combination of /api/v1/search and search.csv, 134 unpaid 402s in an hour on dev2. It indexes nothing for Search, so refusing it by name costs no ranking; an IP ban on 66.249.x would take Googlebot down with it. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
ralyodio
added a commit
that referenced
this pull request
Sep 25, 2026
robots.txt refuses it since #5, but Google caches robots.txt for up to a day, and meanwhile it walks every filter combination of /servers and /api/v1/search at ~120/min. Answer it in the gate with a few bytes and no data. robots.txt stays readable so it can learn the refusal; Googlebot is untouched. Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
GoogleOther (Google's non-Search crawler, verified
crawl-66-249-73-*.googlebot.com) sent 134 unpaid requests to/api/v1/searchand/api/v1/search.csvin about an hour on dev2 today, walking every filter combination and getting 402 each time. Our robots.txt only refused the AI training bots, so for everyone else/api/v1/searchwas open.This adds
User-agent: GoogleOther / Disallow: /via the gateway'srefusedoption. Googlebot (Search) keeps the wildcard rules, so ranking is unaffected. We refuse by name rather than by IP because Googlebot crawls from the same 66.249.x addresses.Tests: 59 pass, including a new check that GoogleOther is refused and
*is still allowed.🤖 Generated with Claude Code