A fake Googlebot is a client that identifies itself as Googlebot in the user agent but does not come from Google. Operators use the disguise to get past access rules that let search engine crawlers through, or to make scraping and probing look less suspicious.
Why the user agent proves nothing
The user agent is a free-text HTTP header. Any client can write “Googlebot” into it. For real Google crawlers, the verification page points to the IP address and its reverse DNS name rather than the user agent string.
How impostors are detected
Google describes two ways. In the manual way, a reverse DNS lookup on the IP from your log must return a name ending in googlebot.com, google.com or googleusercontent.com, and a forward lookup of that name must return the same IP. In the automatic way, you match the IP against the crawler ranges Google publishes as JSON.
Rule sets on the web server side use the same idea. The Fake Bot plugin for the OWASP Core Rule Set compares the user agent of large search engines with a reverse DNS lookup. It adds to an anomaly score and does not block on its own.
Example
Two lines from a log (sample data) carry the same user agent but come from different addresses:
192.0.2.31 - - [06/Oct/2026:08:01:10 +0000] "GET /admin/ HTTP/1.1" 403 199 "-" "Googlebot/2.1"
198.51.100.7 - - [06/Oct/2026:08:01:12 +0000] "GET /products/ HTTP/1.1" 200 20412 "-" "Googlebot/2.1"
Only checking the IP addresses shows which of the two belongs to Google.
Common mistakes
- Tying exceptions to the user agent alone. Rules that exempt “Googlebot” from rate limits, logins or bot protection then apply to anyone who writes that text into the header (a conclusion from the freely settable header).
- Skipping the forward lookup. Google requires that the forward lookup of the host name returns the original IP, not just a matching host name in the reverse lookup.
- Counting fake requests in the analysis. If a log analysis counts every line with a Googlebot user agent, impostors end up in the crawl statistics (practical experience).
FAQ
Can I block everything that calls itself Googlebot? A block based on the user agent alone also hits real requests if the imitation looks identical. A decision based on verification is safer.
How do I verify Googlebot? Use reverse and forward DNS or Google’s published IP ranges.
Sources
- Verifying Google crawlers and fetchers – Google Search Centraldevelopers.google.com
- Introducing the Fake Bot Plugin – OWASP CRScoreruleset.org
- What is Googlebot (impostor)? – Crawler Zoo (secondary)crawlerzoo.com
Last updated: