Encited logo
PricingTalk to sales

Verify Googlebot

Verify Googlebot: check if a crawler IP is real

Paste an IP from your server logs. The tool checks it against Google's published IP ranges and runs the reverse and forward DNS lookup, so you know if the visit came from the real Googlebot.

Why fake Googlebots exist

Any client can send the Googlebot user agent. The IP address is the only part of a request it cannot fake, so verification always starts from the IP.

Scrapers
Content and price scrapers send a Googlebot user agent because many sites never block Google. The user agent is one line of text that any client can set.
Firewall bypass
Some firewall and rate-limit rules let anything named Googlebot through. A fake Googlebot uses that gap to crawl pages a normal bot cannot.
Vulnerability scans
Scanners hide in Googlebot traffic so their requests look normal in the logs.
Bad crawl data
Fake hits make your logs say Google crawls pages it never fetched. An SEO audit built on those logs reads the wrong crawl rate and the wrong errors.

Method 1: reverse and forward DNS lookup

This check is called forward-confirmed reverse DNS, or FCrDNS. It needs no list, only two DNS lookups.

  1. Run a reverse DNS lookup on the IP

    Look up the name of the IP from your log. A real Google crawler returns a name that ends in googlebot.com, google.com or googleusercontent.com.

  2. Check the domain

    crawl-*.googlebot.com and geo-crawl-*.geo.googlebot.com are Googlebot. rate-limited-proxy-*.google.com are special crawlers. *.gae.googleusercontent.com and google-proxy-*.google.com are user-triggered fetchers. Any other domain is not Google.

  3. Run a forward DNS lookup on that name

    Look up the IP of the name from step 1. Anyone can set the reverse DNS record of an IP they own, so the name alone proves nothing.

  4. Compare the IPs

    The forward lookup must return the IP from your log. If it does, the request came from Google. If it returns another IP or nothing, the request is fake.

Terminal
# macOS and Linux
$ 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 same check with dig
$ dig -x 66.249.66.1 +short
crawl-66-249-66-1.googlebot.com.
$ dig crawl-66-249-66-1.googlebot.com +short
66.249.66.1
Windows
# Windows (PowerShell or Command Prompt)
> nslookup 66.249.66.1
Name:    crawl-66-249-66-1.googlebot.com
Address:  66.249.66.1

> nslookup crawl-66-249-66-1.googlebot.com
Name:    crawl-66-249-66-1.googlebot.com
Address:  66.249.66.1

Method 2: Google's published IP ranges

Google publishes the IP ranges of its crawlers as JSON files, in CIDR notation such as 66.249.64.0/27. An IP inside a range is a Google crawler. This is faster than DNS when you check many IPs, and it is how firewall rules verify bots.

common-crawlers.json
Googlebot and the other common crawlers of Google products. They always follow robots.txt for automatic crawls. Their names end in googlebot.com.
special-crawlers.json
Special-case crawlers such as AdsBot, which crawl for one product when the site and that product agree to it. They may or may not follow robots.txt. Their names start with rate-limited-proxy and end in google.com.
user-triggered-fetchers.json
Fetches that a user starts, made by apps that run on Google Cloud, for example an app that fetches an RSS feed for its user. They ignore robots.txt. Their names end in gae.googleusercontent.com.
user-triggered-fetchers-google.json
Fetches that a user starts, made by Google's own tools such as Google Site Verifier. They ignore robots.txt. Their names start with google-proxy and end in google.com.
user-triggered-agents.json
A third list in the user-triggered category, with IPv6 ranges only.
Read the ranges
# Download Google's common crawler ranges
curl -s https://developers.google.com/static/crawling/ipranges/common-crawlers.json \
  | jq -r '.prefixes[] | .ipv4Prefix // .ipv6Prefix'

66.249.64.0/27
66.249.64.32/27
...

The googleusercontent.com trap

Some IPs that look like Google resolve to googleusercontent.com. Only one kind of these is a Google fetcher, and none of them is Googlebot.

*.gae.googleusercontent.com
A user-triggered fetcher: an app on Google Cloud that fetches a page for its user. The IP is in user-triggered-fetchers.json. It passes Google's check, but it is not Googlebot and it ignores robots.txt.
*.bc.googleusercontent.com
A Google Cloud virtual machine that a Google Cloud customer rents. Anyone can rent one and send a Googlebot user agent from it. Treat it as fake.
Any other name
Check the IP against the range files. If it is not in a Google list, it is not a Google crawler, whatever the reverse DNS says.

Find the real client IP in your logs

Behind a CDN, a load balancer or a reverse proxy, your server logs the proxy's IP. Verify the IP the proxy saw instead. Each CDN puts it in a header.

CF-Connecting-IP
Set by Cloudflare. Holds the IP that connected to Cloudflare. Use it when your site runs behind Cloudflare.
True-Client-IP
Set by Akamai, and by Cloudflare when you turn it on.
Fastly-Client-IP
Set by Fastly.
X-Forwarded-For
A list of IPs, one added by each proxy. The client can send its own value, so trust only the entry that your own proxy or CDN added: read from the right and skip the proxies you run.
X-Real-IP
Set by Nginx and some load balancers. It is only correct when your own proxy sets it.
Nginx real IP
# Nginx behind Cloudflare: log the visitor IP, not Cloudflare's
# Add one set_real_ip_from line for each Cloudflare range.
set_real_ip_from 173.245.48.0/20;
set_real_ip_from 2400:cb00::/32;
real_ip_header CF-Connecting-IP;
Find Googlebot IPs in a log
# List the IPs that claim to be Googlebot, with their hit count
grep -i "googlebot" /var/log/nginx/access.log \
  | awk '{print $1}' | sort | uniq -c | sort -rn | head -20

Scripts to verify Googlebot

Use a script to check every Googlebot IP in a log file. The Python script checks the IP ranges first and falls back to DNS. The Bash script runs the DNS check.

Python
import ipaddress, json, socket, urllib.request

LIST = "https://developers.google.com/static/crawling/ipranges/common-crawlers.json"
GOOGLE = (".googlebot.com", ".google.com")

def google_ranges():
    with urllib.request.urlopen(LIST) as resp:
        data = json.load(resp)
    return [ipaddress.ip_network(p.get("ipv4Prefix") or p["ipv6Prefix"])
            for p in data["prefixes"]]

def is_googlebot(ip: str, ranges) -> bool:
    addr = ipaddress.ip_address(ip)
    if any(addr in net for net in ranges):
        return True
    try:
        host = socket.gethostbyaddr(ip)[0]
        if not host.endswith(GOOGLE):
            return False
        return ip in socket.gethostbyname_ex(host)[2]
    except OSError:
        return False

ranges = google_ranges()
for ip in ["66.249.66.1", "203.0.113.7"]:
    print(ip, "real" if is_googlebot(ip, ranges) else "fake")
Bash
#!/usr/bin/env bash
# Usage: ./verify-googlebot.sh 66.249.66.1
ip="$1"
host=$(dig -x "$ip" +short | sed 's/\.$//')
case "$host" in
  *.googlebot.com|*.google.com) ;;
  *) echo "$ip: fake ($host)"; exit 1 ;;
esac
if dig "$host" A "$host" AAAA +short | grep -qx "$ip"; then
  echo "$ip: real Google crawler ($host)"
else
  echo "$ip: fake (forward lookup does not match)"; exit 1
fi

Block fake Googlebots at the firewall

Cloudflare marks verified crawlers with cf.client.bot, so one custom rule blocks every request that says Googlebot and comes from another IP. On Nginx, build the same check from Google's range file.

Cloudflare WAF rule
# Cloudflare: Security > WAF > Custom rules > Create rule
# Expression
(http.user_agent contains "Googlebot" and not cf.client.bot)

# Action
Block   (or Managed Challenge while you test the rule)
Nginx
# 1. Build the range file, and refresh it every day with cron
curl -s https://developers.google.com/static/crawling/ipranges/common-crawlers.json \
  | jq -r '.prefixes[] | (.ipv4Prefix // .ipv6Prefix) + " 1;"' \
  > /etc/nginx/googlebot-ranges.conf

# 2. In the http block
geo $google_ip {
  default 0;
  include /etc/nginx/googlebot-ranges.conf;
}
map $http_user_agent $claims_googlebot {
  default 0;
  ~*googlebot 1;
}
map "$claims_googlebot:$google_ip" $fake_googlebot {
  default 0;
  "1:0" 1;
}

# 3. In the server block
if ($fake_googlebot) { return 403; }
Match the IP, not the name
Block a request that says Googlebot and fails the IP check. Never block every request that says Googlebot, and never allow every one.
Keep the lists current
Google adds ranges often. A rule built on an old copy of the file blocks the new real Googlebot IPs. Refresh the file every day.
Include all Google files
A rule that checks only common-crawlers.json blocks AdsBot and the user-triggered fetchers, such as Google Site Verifier. Add the other files if those requests matter to you.
Challenge before you block
Start with a challenge or a log-only rule for a week. Check that no request from a Google range was stopped, then switch to block.
Do not slow the real crawler
A rate limit that hits real Googlebot makes Google crawl less. Exempt verified Google IPs from rate limits.

Real crawl error or fake Googlebot?

  1. Does the request say it is Googlebot?

    Check the user agent in the log. If it does not say Googlebot, this tree does not apply.

  2. Is the IP the real client IP?

    If the site runs behind a CDN or a proxy, read the IP from CF-Connecting-IP or the header your proxy sets. The IP of the CDN is never the crawler.

  3. Is the IP in a Google range, or does it pass the DNS check?

    If not, the request is fake. Its 403 and 404 errors are not crawl errors, so leave them out of your crawl report and block the IP.

  4. Is it Googlebot or another Google fetcher?

    A user-triggered fetcher is a person running a Google tool or an app on Google Cloud. Its hits do not show how Google Search crawls the site.

  5. Did the real Googlebot get an error?

    A 403, 429 or 5xx to a verified Googlebot is a real crawl problem. Check firewall rules, rate limits and server errors for that IP first. The Crawl Stats report in Google Search Console shows the errors Google itself saw.

  6. Did it get the full page?

    If the status is 200 but the page is not indexed, test the page as Googlebot to see the HTML Google gets.

What to do with a fake Googlebot

  1. Confirm it

    Check two or three of the IPs with the tool above. Scrapers often rotate through a whole hosting range.

  2. Block or challenge it

    Add a firewall rule that blocks requests that claim Googlebot and fail the IP check. The Cloudflare and Nginx rules above do this.

  3. Clean your crawl data

    Remove the fake hits from your log reports, so the crawl rate and errors you report are Google's.

  4. Watch for the next one

    Fakes come back from new IPs. Check new Googlebot IPs in the logs every week, or use a tool that checks each visit for you.

Verify Googlebot FAQ

Check the IP, not the user agent. Paste the IP into the tool above. It checks Google's published IP ranges and runs the reverse and forward DNS lookups. A real Googlebot IP passes both. A fake one passes neither.

Yes. The user agent is a line of text the client sends, and any script or browser can send the Googlebot string. Only the IP shows who sent the request.

The DNS check asks the IP for its name, then asks the name for its IP. It works without a list, but needs two lookups for each IP. The IP lists let you check an IP with no DNS lookup, which is faster in a firewall rule. Google publishes both methods and either one is enough.

No. *.gae.googleusercontent.com is a user-triggered fetcher: an app on Google Cloud that fetches a page for its user. It is in Google's lists, but it is not Googlebot. Other googleusercontent.com names, such as *.bc.googleusercontent.com, are Google Cloud servers that anyone can rent. Treat a Googlebot user agent from one of them as fake.

Read the header your CDN sets: CF-Connecting-IP on Cloudflare, True-Client-IP on Akamai, Fastly-Client-IP on Fastly. With X-Forwarded-For, trust only the entry your own proxy added. Configure your web server to log that IP, as in the Nginx example above.

Block or challenge it at the firewall with a rule that checks the IP, then remove its hits from your crawl reports. Do not block by user agent alone, or you block the real Googlebot too.

Fetch the page as Googlebot with the Googlebot tester. It shows the status code, the headers and the HTML Google gets. On a JavaScript site, compare the raw HTML with the rendered page to see what Google can index.

Google does not use a fixed set. It publishes the current Googlebot ranges in common-crawlers.json. Ranges change, so check the current file instead of a list copied from a blog post.

Yes. A Disallow rule for Googlebot in robots.txt stops Google from crawling those pages, so it can no longer read or rank their content. To stop fake Googlebots, block by IP as shown above and leave the real Googlebot allowed.

The files carry a creationTime field, and Google updates them often. Refresh any copy you keep every day.

Yes. The tool above also checks Microsoft's Bingbot list and OpenAI's lists for GPTBot, OAI-SearchBot, ChatGPT-User and OAI-AdsBot. Bingbot names end in search.msn.com. OpenAI publishes IP lists only, with no reverse DNS names.

Yes. It's free and you don't need an account.

More free SEO tools

“Encited has become my go-to for all Lovable projects. I saw an uptick in crawls almost immediately after switching. Honestly one of the best dev/SEO tools I’ve used. Aki was also amazing on support. Love it!”
Kyle Davidson
Kyle Davidson
Co-founder at Shoutout.io
Trusted by over 5,000 brands and agencies
Shoutout.io
Optimum Service Marketing
Brilus
Local Marketing Vault
API Worx
Main Street Marketer
Crawl logs

See every real Googlebot visit to your site

Crawl logs record each bot visit and check its IP against the crawler's published ranges, so you see which visits are the real Googlebot and which only use its name.

  • Every visit with the page, status and what was served
  • IP check against Google, Bing, OpenAI and other published ranges
  • Query visits that fail the check from Claude through the Encited MCP
Book a demo
Recent crawler visits with page, crawler, status, latency and the outcome served
Click to zoom
Avatar
How can we help?
Get instant answers to your questions or leave a message for an engineer will reach out
Ask AI about Encited
See our docs
Contact support
Leave a message
We'll get back to you soon
Avatar
Ask AI about Encited
Product questions, troubleshooting and
Thinking
Preview
Drop an image to attach
Powered by ReplyMaven