Article
Is that really Googlebot? How to check your logs
Short answer
To check that a visitor calling itself Googlebot really is Google, run a reverse DNS lookup on its IP, confirm the name ends in googlebot.com, google.com or googleusercontent.com, then run a forward lookup and make sure you get the same IP back (Google Search Central). Google also publishes JSON lists of its crawler IP ranges you can match against (Google Search Central). The user agent string alone proves nothing, because Google says it “is often spoofed by other crawlers” (Google Search Central).
This matters most right before you block something. Blocking a fake Googlebot is housekeeping. Blocking the real one can take your pages out of Google Search.
Why the user agent isn’t enough
Every request carries a user agent header, and any script can set it to say Googlebot. Google’s Googlebot page says it’s important to verify that a problematic request actually comes from Google before you block it (Google Search Central). Its recommended methods are a reverse DNS lookup on the source IP or matching the IP against Googlebot’s published ranges (Google Search Central).
Watch out
Watch out: blocking the real Googlebot affects Google Search, including Discover and all Search features, plus Google Images, Google Video and Google News (Google Search Central).
Google’s three kinds of visitors
Google sorts its crawlers and fetchers into three groups, and each resolves to a different hostname pattern (Google Search Central):
| Type | Example | Follows robots.txt? | Reverse DNS ends in |
|---|---|---|---|
| Common crawlers | Googlebot | Always, for automatic crawls (Google Search Central) | googlebot.com (Google Search Central) |
| Special-case crawlers | AdsBot | May or may not (Google Search Central) | google.com (Google Search Central) |
| User-triggered fetchers | Google Site Verifier | No, because a user asked for the fetch (Google Search Central) | gae.googleusercontent.com or google.com (Google Search Central) |
Note
Note: that third row explains a common confusion. A Google tool fetching your page on a user’s request can ignore robots.txt, and that’s documented behavior, not a rogue crawler (Google Search Central).
The manual check, step by step
Google says the command line method is “sufficient for most use cases” (Google Search Central). You need the IP from your server or CDN logs and a terminal.
- Reverse lookup. Run
hoston the IP from your logs (Google Search Central). - Check the name. It should be in googlebot.com, google.com or googleusercontent.com (Google Search Central).
- Forward lookup. Run
hoston the name you got back (Google Search Central). - Compare. The result must match the original IP (Google Search Central).
Here’s Google’s own example of a pass:
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.1Step 3 is the one people skip. Anyone who controls an IP block can make its reverse DNS say almost anything. Our read: the forward lookup is what makes the check trustworthy, since the googlebot.com domain only points back to Google’s own addresses.
The automatic method
For larger volumes, Google suggests matching IPs against its published lists instead (Google Search Central). There are separate files for common crawlers, special crawlers, two kinds of user-triggered fetchers and user-triggered agents (Google Search Central). The addresses are in CIDR format (Google Search Central).
Our read: if you use a CDN or firewall with a “verified bots” feature, it’s likely doing something similar for you. Check its docs rather than assuming.
Things that look odd but are normal
| Many different IPs | Google says its crawlers run across many datacenters near the sites they visit, so your logs may show several IP addresses (Google Search Central). |
|---|---|
| Mostly mobile visits | For most sites Google primarily indexes the mobile version, so most Googlebot requests come from the smartphone crawler (Google Search Central). |
| US Pacific timestamps | When crawling from US IPs, Googlebot’s timezone is Pacific Time (Google Search Central). |
| Visits from outside the US | Google says it mainly crawls from US addresses, but may try other countries if it detects a site blocking US requests (Google Search Central). |
| A visit every few seconds | Google says that for most sites, Googlebot shouldn’t visit more than once every few seconds on average, and short bursts can look a bit higher (Google Search Central). |
What Googlebot reads
Googlebot crawls the first 2MB of a supported file type and the first 64MB of a PDF when crawling for Search (Google Search Central). Past that limit it stops and sends only what it downloaded for indexing (Google Search Central). Our read: if you have a giant HTML page with key text at the bottom, that limit is worth knowing.
If it’s fake, or real and too busy
A fake Googlebot is just another bot. Block it the way you’d block any scraper, by IP or at your firewall.
If it’s real and your server is struggling, don’t block it. Google’s advice is to reduce the crawl rate instead (Google Search Central). You can’t pick Googlebot Smartphone or Desktop separately in robots.txt, since both obey the same token (Google Search Central).
Key takeaway
What to do next
Next time your logs or security plugin flag a suspicious Googlebot, run the four-step check on one IP before changing any rule. Keep a note of what you found and when. Read how Be In GEO works for how we keep logs like this.
Get the worksheet
Want to see which sites AI answers cite for the questions your customers ask? Grab the free worksheet at beingeo.com/checklist. You’ll also get short emails with each new teardown.
FAQ
Can I trust a user agent that says Googlebot?
No. Google says the Googlebot user agent is often spoofed, and recommends a reverse DNS check or IP range match (Google Search Central).
Does every Google fetcher obey robots.txt?
No. Google says user-triggered fetchers ignore robots.txt, since a user requested the fetch (Google Search Central).
Can I block only Googlebot Desktop?
Not in robots.txt. Both crawler types use the same token (Google Search Central).