Googlebot is Google's crawler, which fetches pages so they can appear in Google Search. A request labeled Googlebot usually means Google is crawling your website.
The name can be faked, though, because the user agent is a label any client can set. To check a Googlebot claim, look up the source IP in Google's published common-crawler ranges. Alternatively, confirm the reverse DNS name matches Google's common-crawler pattern under .googlebot.com and that a forward lookup of that hostname returns the original IP.
Before you start checking, it's worth knowing what fake Googlebot traffic actually costs you.
Why fake Googlebot traffic is a problem
Many websites wave Googlebot through without checking where requests come from, which is exactly why bots copy its name: impersonators get the same pass Google does. Once they're in, they can cause several kinds of trouble:
- Scraping: They copy your content and pricing while passing as a crawler you'd never block.
- Reaching protected pages: They get into areas your bot rules were meant to keep bots out of.
- Vulnerability scans: Scanners hide behind the label to probe for weak plugins and exposed paths.
- Server load: Every fake request consumes the same resources a real visit does.
- Skewed analysis: If your log analysis counts every "Googlebot" request as Google, your crawl data is wrong before you start.
Why you can't trust the Googlebot name on its own
Anyone can set the label that names a crawler, so the name alone proves nothing. A user agent is a line of text the client sends with every request to say what it is. The client writes that line itself.

A browser fills in its own name, and a scraper can type "Googlebot" in one line of code. Google's own Googlebot documentation says the user agent is often spoofed, and that is why its verification method relies on the IP address.
Fakes are hard to spot by eye, too. Centinel, a bot-detection vendor, measured news and media websites from late June to 21 September 2026. In that sample, 94% of fake Googlebot requests claimed the real Googlebot's current version string, and 88% came from datacenter addresses. The IP, not the header, is where fakes give themselves away.
Why robots.txt won't stop fake Googlebots
A robots.txt file asks crawlers to stay out of certain pages, but it's a request, not a lock. RFC 9309, the standard behind it, says its rules are not a form of access authorization. The standard tells website owners to use real security measures such as HTTP authentication to control access. Google's own guide says robots.txt cannot enforce crawler behavior. Googlebot obeys the file, but other crawlers might not.
A scraper pretending to be Googlebot has already decided to ignore your rules, so a Disallow line won't stop it. You have to enforce the block where requests arrive, at your web server, web application firewall (WAF) or CDN.
What you need before you start
You need three things before you start, and most teams already have them:
- Log access: Raw access logs from your web server, or request logs from your CDN (Cloudflare calls these Logpush logs).
- A terminal: Any Mac or Linux shell with the
hostordigcommand, which look up DNS records. - A developer: Someone who can edit nginx or Apache config, firewall rules or Cloudflare custom rules, and reload the server safely.
If you're a content or SEO lead, you can run the lookups yourself. The blocking rules belong with your developer.
How to verify Googlebot step by step
Verification ties the IP address in your logs back to Google, either through Google's DNS or through Google's published IP lists. As of November 2026, Google's guide to verifying its crawlers and fetchers lists two methods.
Use the DNS check for one-off lookups, which Google calls sufficient for most use cases, and match IPs against Google's published lists when you need to check large volumes.
Step 1. Find Googlebot requests in your server logs
Start with the IP addresses that claim to be Googlebot. In the standard log format that web servers such as nginx and Apache use, each line starts with the visitor's IP address and ends with the user agent. A line looks like this:
203.0.113.42 - - [12/Nov/2026:09:14:03 +0000] "GET /pricing HTTP/1.1" 200 5120 "-" "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"This command lists every IP that claimed Googlebot, ranked by request count:
awk -F '"' 'NF == 7 && tolower($6) ~ /googlebot/ { split($1, prefix, " "); print prefix[1] }' access.log |
sort | uniq -c | sort -nr | head -20For the combined log format shown above, awk checks the quoted user-agent field and prints the IP for matches. The remaining commands count requests per IP and show the busiest 20. If your logs use a different format, or if quoted fields contain literal quotes, use your log parser's named client-IP and user-agent fields.
Check what's in that first field before you trust it. If your website sits behind a CDN or load balancer, the first field may hold the proxy's address unless your developer has configured real-IP handling. In nginx that means the realip module, and Cloudflare passes the visitor's real IP in a CF-Connecting-IP header. In Cloudflare's own logs, the fields to read are ClientIP and ClientRequestUserAgent.
Look first at heavy hitters whose ownership looks wrong. An IP registered to a hosting company or a cloud server provider and claiming to be Googlebot is the usual pattern.
Step 2. Run a reverse DNS lookup on the IP
A reverse DNS lookup asks for the hostname that belongs to an IP address. The record that answers it is called a PTR record. Run host with the IP:
host 66.249.66.1
1.66.249.66.in-addr.arpa domain name pointer crawl-66-249-66-1.googlebot.com.dig gives the same answer in a shorter form:
dig -x 66.249.66.1 +short
crawl-66-249-66-1.googlebot.com.The -x flag tells dig to do a reverse lookup, and +short drops everything except the answer.
Google's guide says the hostname must end in googlebot.com, google.com or googleusercontent.com. Each domain matches a different kind of Google requester:
- Common crawlers such as Googlebot:
crawl-***-***-***-***.googlebot.comorgeo-crawl-***-***-***-***.geo.googlebot.com. - Special-case crawlers such as AdsBot:
rate-limited-proxy-***-***-***-***.google.com. - User-triggered fetchers such as Google Site Verifier:
***-***-***-***.gae.googleusercontent.comorgoogle-proxy-***-***-***-***.google.com.
For a request claiming to be Googlebot, you should see the googlebot.com pattern. A fake usually returns a hosting provider's hostname or no PTR record at all.
Here's the lookup for the IP from Step 1, which has no PTR record:
host 203.0.113.42
Host 42.113.0.203.in-addr.arpa. not found: 3(NXDOMAIN)NXDOMAIN means no reverse record exists for that IP, so the request can't be Google's.
Match a full DNS label boundary as well as the expected crawler pattern. crawl-1-2-3-4.googlebot.com.example.net belongs to example.net, and fakegooglebot.com is outside .googlebot.com.
Step 3. Confirm with a forward DNS lookup
A forward DNS lookup goes the other way, from a hostname to its IP address. Run it on the hostname from Step 2:
host crawl-66-249-66-1.googlebot.com
crawl-66-249-66-1.googlebot.com has address 66.249.66.1The returned IP must match the IP from your logs exactly. If it does, the request came from Google.
Whoever controls a block of IP addresses can set the reverse record for those addresses. A scraper renting servers can therefore make its IP claim a name like crawl-a-b-c-d.googlebot.com. Google's crawl team warned in 2006 that reverse DNS alone can be spoofed. The forward lookup asks googlebot.com's own DNS, which Google runs and the scraper can't change. The forward record for that hostname points to Google's IP, so the two answers won't match.
The check is cheap and decisive. Run it on every suspicious IP before you block anything.
Step 4. Check the IP against Google's published ranges
Google publishes the IP ranges its crawlers use as JSON files. Your server can match IPs against them on every request. Each file opens with a creationTime timestamp followed by a prefixes list. Each entry holds an ipv4Prefix or ipv6Prefix written in CIDR notation, a compact way to describe a block of addresses such as 66.249.76.192/27.
Google's verification table assigns Googlebot to common-crawlers.json, now at https://developers.google.com/crawling/ipranges/common-crawlers.json. In March 2026, Google moved the range files to /crawling/ipranges/, and the old /search/apis/ipranges/ paths still work for now. Point any new scripts at the new path. The other files cover the other requester types:
special-crawlers.jsonfor special-case crawlers such as AdsBotuser-triggered-fetchers.json,user-triggered-fetchers-google.jsonanduser-triggered-agents.jsonfor fetchers acting on a user's request
Common crawlers and automated checks
The common-crawler file covers more than search Googlebot. Google lists Googlebot Smartphone, Googlebot Desktop, Googlebot-Image, Googlebot-Video, Googlebot-News, Google-InspectionTool, GoogleOther and Storebot-Google as common crawlers that generally crawl from those ranges.
To script the check, your developer downloads the file on a schedule, extracts the prefixes and tests each logged IP against them with any standard IP library.
Use ASN only as a filter
The ASN makes a useful quick filter, but you shouldn't use it to prove anything. An ASN (autonomous system number) identifies the network that announces an IP block. AS15169 is registered to Google LLC.
But Google runs several ASNs, including AS396982, which is Google Cloud's network. Google Cloud customers rent addresses in Google-registered space. A scraper on a Google Cloud server can therefore carry a Google-owned network label.
Google's guide doesn't use ASNs as a test. It uses DNS and the published ranges.
How to block fake Googlebot requests without blocking the real crawler
The goal is to turn away fakes without touching the real crawler or ordinary visitors. Configure nginx, Apache or Cloudflare to return a 403 (Forbidden) only when the user agent claims Googlebot and the IP fails verification. After deployment, test that Google's requests still get through.
nginx
Match against Google's published ranges. If nginx sits behind a CDN or load balancer, configure nginx's real IP module to accept the client address only from trusted proxies. Confirm in logs that nginx sees the actual client IP at the point where it evaluates the rule. If you cannot verify that, leave blocking off at nginx and verify requests at the edge instead.
geo $from_google {
default 0;
include /etc/nginx/google-crawler-ips.conf;
}
map "$from_google:$http_user_agent" $fake_googlebot {
default 0;
"~*^0:.*googlebot" 1;
}
server {
if ($fake_googlebot) {
return 403;
}
}- The
geoblock sets$from_googleto 1 when the client IP falls in a range from the included file, which holds lines such as66.249.76.192/27 1;generated from the JSON. - The
mapjoins that flag and the user agent into one string. It sets$fake_googlebotto 1 only when the IP is not Google's (0:) and the user agent contains “Googlebot” in any capitalization. - The
ifinside theserverblock returns 403 for those requests.
Regenerate the include file from the JSON on a schedule, test with nginx -t and reload.
Apache
Use a deny-only filter in Apache's rewrite module. Return 403 only when the user agent claims Googlebot and the source IP is outside Google's published common-crawler ranges. Keep the host's existing authorization rules in place.
Test that an ordinary visitor still reaches a public URL and that an unauthenticated request to a protected URL still fails. Check that verified Googlebot requests reach the public pages you expect it to crawl.
Apache's Require host googlebot.com line looks simpler, but it runs a double reverse DNS lookup on every request it evaluates, whatever your HostnameLookups setting is. A DNS lookup on every request adds latency, so keep it off busy pages.
Cloudflare
For a Googlebot-specific decision, check the client IP against Google's published common-crawler ranges. If you want a broader filter that blocks unverified requests claiming Googlebot, create a custom rule with the action Block and this expression:
(lower(http.user_agent) contains "googlebot" and not cf.client.bot)lower() makes the user-agent match case-insensitive. Cloudflare's verified-bot field covers known good bots from multiple providers. This rule blocks unverified requests that claim Googlebot. To verify a specific request as Googlebot, compare its source IP with Google's published ranges or follow the DNS checks above.
Test that the real Googlebot still gets through
Test the rule as soon as it goes live, because a mistake that blocks the real Googlebot can remove your pages from the index. A 403 is one of the 4xx errors Google treats as a sign that the content doesn't exist. Google then drops pages it already indexed and gradually crawls the website less, which is the damage a block rule does if it catches the real Googlebot.
Check from three places once the rule is live:
- URL Inspection live test: Test a few representative URLs in Search Console. The live test reports Crawl allowed? and Page fetch, and View tested page shows the HTTP response. The test fetches as Google-InspectionTool, whose user agent doesn't contain the word "Googlebot", so a pass shows Google can reach the page but doesn't fully exercise a rule keyed on that string.
- Your logs: Filter the next day's traffic for Googlebot requests and confirm that verified Google IPs are getting 200s, not 403s.
- Crawl Stats: Over the following days, watch host status and response codes along with the Googlebot type breakdown in Search Console's Crawl Stats report. The report is available only for Domain properties or root-level URL-prefix properties. A rise in 403s or other client errors right after deployment points to your rule.
Where to start
Start by pulling the busiest IPs claiming Googlebot from your logs with the Step 1 command, then verify each one with a reverse and a forward DNS lookup. Block only requests that both claim Googlebot and fail verification. Watch Crawl Stats for a few days to confirm the real Googlebot still gets 200s. If a crawl spike passes both lookups, it's Google, so leave it alone: blocking a verified crawler to cut load just trades a server problem for an indexing problem. Exempt verified crawlers from blanket firewall and challenge rules too.
