Site AI Auditby Internet Solutions

Verify Googlebot: How to Spot Fake Search Crawlers

November 9, 20268 min readSecurity & SSL
Verify Googlebot: How to Spot Fake Search Crawlers

Short answer: Anyone can send a request that says “Googlebot” in its user agent. To be sure that a visitor is a real Google crawler, look up the host name of its IP address, check that it ends in googlebot.com or google.com, and then look up that name to confirm that it returns the same IP address. Block or limit visitors that fail this check.

Why imposters pretend to be Googlebot

Website owners usually welcome search crawlers, so many security rules and firewalls let them through. Attackers know this. A scraper, a vulnerability scanner or a bot that hunts for contact forms may copy the Googlebot user agent in the hope that it is treated kindly. Others use the name to get around rate limits, paywalls or country blocks that real visitors face.

The user agent is only a text label sent by the client. It proves nothing, just as a name badge printed at home proves nothing. The practical problem for you is twofold. Fake crawlers waste server time, and if you block everything that mentions Googlebot, you also block the real thing, which harms your search visibility.

Signs that a Googlebot visit may be fake

The two-step DNS check

Google documents a reliable method that does not depend on any list of addresses staying current. It works like calling a company back on its official number.

  1. Take the IP address from your server log. This is the address that connected to your server, not a value from a header that the client can change.
  2. Run a reverse DNS lookup. The result should be a host name that ends in googlebot.com or google.com. On Linux or macOS you can use the host command with the IP address.
  3. Run a forward lookup on that host name. The result must include the same IP address you started with.
  4. Decide. If both steps match, the visitor is a real Google crawler. If either step fails, treat it as an imposter.

The second step matters. An attacker who controls the reverse DNS of their own IP can make it say anything, but they cannot make Google’s DNS return their address. The idea is the same as in the article on reverse DNS for email, where a matching forward and reverse record shows that a name and an address belong together.

Using published IP ranges

Google also publishes lists of the IP ranges that its crawlers use, in a machine-readable format. This is useful for firewalls and bulk checks, because a lookup for every request is slow. Download the list on a schedule, refresh it regularly and compare visitor addresses with it. Do not copy an old list into a configuration and forget it, because ranges change.

Remember that Google uses several crawlers, such as those for images, ads and other products, and each has its own name. Check the current documentation for the list of user agents and for the ranges that apply to each.

What to do with fake crawlers

For wider guidance on unwanted crawlers, read the article on bad bots and aggressive crawlers.

Checking from Search Console

The Crawl Stats report in Google Search Console shows how many requests Googlebot made to your site, which response codes it received and how quickly your server answered. If your log shows many more “Googlebot” requests than this report, the difference is probably fake traffic. The guide to the Crawl Stats report explains how to read it.

Practical examples

Consider a small shop whose log shows 4,000 requests a day from “Googlebot”. The Crawl Stats report shows only 600. The difference of 3,400 is not Google. A closer look at the log shows that most of the extra requests come from two address ranges that belong to a hosting company, they all request product pages in alphabetical order and none of them ever fetches an image or a style sheet. This is a scraper copying the catalogue. Blocking those two ranges at the firewall removes the load, and the real crawler is untouched.

In another case a membership site allows Googlebot to see article text that is otherwise behind a login, so that the articles can be indexed. If the rule is based on the user agent alone, any visitor who changes the user agent reads the whole archive for free. Verifying the crawler with a DNS check, or at least with the published IP ranges, closes that gap. Remember also that showing content to crawlers that is hidden from users must follow Google’s rules for paywalled content, so read the current guidelines before you set it up.

Common mistakes

Automating the check

If you maintain your own server, the DNS check is easy to script. A short program can read new lines from the access log, select those that mention a major search bot, run the two lookups and write the results into a cache so that each address is checked only once per day. Addresses that fail go to a block list that your firewall reads. If you use a managed firewall or a content delivery network, look for a “verified bots” or “bot management” setting instead, which does the same work for you. Either way, review the block list from time to time and remove entries that are old, because addresses are reused by other customers of hosting companies.

How Site AI Audit helps

Site AI Audit does not read your server logs, so it cannot tell you which visitors are fake. It checks the public side that decides what real crawlers can see: robots.txt, the sitemap, noindex rules, redirects and server response time, along with security headers and SSL. Run it before you tighten bot rules, so that you know your robots.txt and sitemap are in order. The free check covers up to 50 pages and needs no sign-up. You can run a free check of your website or look at the plans.

Related reading

The bottom line

A user agent is a claim, not proof. Confirm real Google crawlers with a reverse and forward DNS check or the published ranges, and treat everything else with caution. This protects your server from scrapers and keeps the real Googlebot welcome.

FAQ

Can I trust the user agent in my logs?

No. It is text supplied by the client and can be copied by anyone. Use it as a hint and confirm important cases with a DNS check.

Will blocking fake Googlebot hurt my rankings?

Not if you block only visitors that fail verification. Real Googlebot passes the check, so your indexing is not affected.

Do I need to verify every request?

No. Verify when you see suspicious volume or behaviour, or let a firewall do it for you. Checking every request by hand is not practical.

Are other search engines verified the same way?

Major search engines usually document a similar reverse and forward DNS method or publish IP ranges. Check each engine’s own documentation for the host names to expect.

What if a real crawler is blocked by mistake?

Check the Crawl Stats report and the URL Inspection tool in Search Console, then loosen the rule. Real crawlers back off when blocked, so fix mistakes quickly.

#Crawling#Technical SEO#Website security
Check your own website.Is your website protected from hacking?
Start free

More from the blog

All articles →
Internet Solutions

More from our team

Built by Internet Solutions. Try the rest of our products — each one saves you time in a different way.

internet-solutions.net ↗