Webmaster Bench

Tools / Guides / How to tell real Googlebot from a fake one in your logs

How to tell real Googlebot from a fake one in your logs

The user agent proves nothing: anyone can send "Googlebot". Google documents two reliable checks, a two-way DNS lookup and its published IP lists. Here is each one, with log lines run through a checker.

Published 2026-11-20. Last updated 2026-11-20. Written by Webmaster Bench; see About for how the guides are made and checked.

Try it: Crawler Log Analyzer: Open an access log to see what Googlebot and other crawlers fetched, which errors they hit, and fake bots.

Why the user agent is not enough

The user agent is a line of text the client chooses. Scrapers and vulnerability scanners often send Googlebot's, because sites rarely block it. If you count, rate-limit or block traffic by user agent alone, you will count fakes as Google, and if you block "Googlebot" because of fakes, you block the real one too. Google's documentation offers two ways to check a request: DNS lookups for one-off checks, and matching the IP address against Google's published lists for checks at scale.

Method 1: reverse DNS, then forward DNS

Google's steps, using the host command:

  1. Run a reverse lookup on the IP address from your log.
  2. Check that the name is in googlebot.com, google.com or googleusercontent.com.
  3. Run a forward lookup on that name.
  4. Check that it returns the original IP address.

Google's own example:

host 66.249.66.1
1.66.249.66.in-addr.arpa domain name pointer crawl-66-249-66-1.googlebot.com.

host crawl-66-249-66-1.googlebot.com
crawl-66-249-66-1.googlebot.com has address 66.249.66.1

The forward lookup is the step people skip, and it is the one that matters. Whoever controls an IP address controls its reverse DNS, so a spoofer can make their own address point to a name such as crawl-1-2-3-4.googlebot.com. Google pointed this out when it first published the method in 2006. Only Google can make a googlebot.com name resolve forward to an address, so the round trip is what proves it.

Which domain to expect

The three domains are not interchangeable. Google's table of crawler types gives the reverse DNS pattern of each:

TypeExamplesReverse DNS
Common crawlersGooglebot, Googlebot-Image, GoogleOther, Google-InspectionToolcrawl-***-***-***-***.googlebot.com or geo-crawl-***-***-***-***.geo.googlebot.com
Special-case crawlersAdsBot-Google, Mediapartners-Googlerate-limited-proxy-***-***-***-***.google.com
User-triggered fetchersfetches a person asked for, such as Google Site Verifier***-***-***-***.gae.googleusercontent.com or google-proxy-***-***-***-***.google.com

So a request that says it is Googlebot should resolve to a googlebot.com name. A googleusercontent.com name is not Googlebot. Google Cloud's documentation says that a virtual machine without its own reverse DNS record answers reverse lookups with a googleusercontent.com name, so a scraper rented on Google Cloud passes a check that accepts any name ending in googleusercontent.com.

Method 2: match against Google's IP lists

Running two DNS lookups per request does not scale to a whole log file. For that, Google publishes its crawlers' IP ranges as JSON files, one per crawler type: common-crawlers.json (Googlebot and the other common crawlers), special-crawlers.json (AdsBot and similar), and three files for user-triggered fetchers and agents. The ranges are in CIDR form, such as 66.249.66.0/27, and include IPv6 ranges. Two things go wrong here:

  • Old file names. Older guides and scripts download googlebot.json from a /search/apis/ipranges/ path, and only that one file. Google's verification page now links five files under /static/crawling/ipranges/. A script that checks AdsBot against the Googlebot list will call real AdsBot fake. Use the links on Google's page, and the list that matches the crawler.
  • Stale copies. Each file has a creationTime. A copy you downloaded once and never refreshed will slowly start calling real Googlebot fake. Refresh it on a schedule.
Advertisement

Worked example

Four log lines, three of which claim to be Googlebot and one AdsBot:

66.249.66.1 - - [18/Nov/2026:06:12:01 +0000] "GET /blog/ HTTP/1.1" 200 18234 "-" "Mozilla/5.0 (Linux; Android 6.0.1; Nexus 5X Build/MMB29P) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.7390.122 Mobile Safari/537.36 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"
203.0.113.9 - - [18/Nov/2026:06:12:05 +0000] "GET /wp-login.php HTTP/1.1" 404 512 "-" "Mozilla/5.0 (Linux; Android 6.0.1; Nexus 5X Build/MMB29P) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.7390.122 Mobile Safari/537.36 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"
198.51.100.23 - - [18/Nov/2026:06:12:09 +0000] "GET /search?q=%27 HTTP/1.1" 200 4410 "-" "Googlebot/2.1 (+http://www.google.com/bot.html)"
66.249.87.1 - - [18/Nov/2026:06:13:00 +0000] "GET /landing/ HTTP/1.1" 200 9100 "-" "AdsBot-Google (+http://www.google.com/adsbot.html)"

Run through the crawler log analyzer, which checks each claimed Google crawler against copies of Google's lists (common crawlers for Googlebot, special-case crawlers for AdsBot and Mediapartners-Google; the copies are dated 2026-11-19):

IP addressClaims to beRequestIn Google's list?
66.249.66.1Googlebot Smartphone/blog/Yes (common crawlers list)
203.0.113.9Googlebot Smartphone/wp-login.phpNo (common crawlers list)
198.51.100.23Googlebot Desktop/search?q=%27No (common crawlers list)
66.249.87.1AdsBot-Google/landing/Yes (special-case crawlers list)

The analyzer reports the first and last lines as Google and the other two as unverified (claiming to be a Google crawler from outside Google's published ranges), and leaves those two out of its Googlebot figures. Note what the fakes asked for: a login page and a search URL with a quote character in it. That is typical: fake Googlebots probe for weaknesses, they do not crawl your content.

Before you block an address the analyzer calls unverified, confirm it with the DNS method above. The tool's lists are copies, dated as shown, and a browser cannot do DNS lookups.

What to do with the fakes

  • Block by IP or network, not by user agent. Blocking the string "Googlebot" blocks the real crawler. If your firewall or CDN has a "verified bots" feature, it does this verification for you; rules that only look at the user agent do not.
  • Do not use robots.txt against them. robots.txt is a request that well-behaved crawlers follow. A client that lies about its identity will not read it.
  • Keep them out of your crawl statistics. Fake Googlebot hits make it look as if Google crawls more, or crawls error pages more, than it does. Filter by verified IP before you draw conclusions about crawl budget.

Sources

Advertisement