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:
- Run a reverse lookup on the IP address from your log.
- Check that the name is in
googlebot.com,google.comorgoogleusercontent.com. - Run a forward lookup on that name.
- 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:
| Type | Examples | Reverse DNS |
|---|---|---|
| Common crawlers | Googlebot, Googlebot-Image, GoogleOther, Google-InspectionTool | crawl-***-***-***-***.googlebot.com or geo-crawl-***-***-***-***.geo.googlebot.com |
| Special-case crawlers | AdsBot-Google, Mediapartners-Google | rate-limited-proxy-***-***-***-***.google.com |
| User-triggered fetchers | fetches 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.jsonfrom 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.
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 address | Claims to be | Request | In Google's list? |
|---|---|---|---|
66.249.66.1 | Googlebot Smartphone | /blog/ | Yes (common crawlers list) |
203.0.113.9 | Googlebot Smartphone | /wp-login.php | No (common crawlers list) |
198.51.100.23 | Googlebot Desktop | /search?q=%27 | No (common crawlers list) |
66.249.87.1 | AdsBot-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
- Google: Verify requests from Google crawlers and fetchers
- Google: Googlebot and other common crawlers
- Google: Special-case crawlers (AdsBot, Mediapartners-Google)
- Google Search Central Blog (2006): How to verify Googlebot
- Google Cloud: Create PTR records for VM instances (default googleusercontent.com name)
- Google: common-crawlers.json (IP ranges)