Verify Googlebot to block crawlers pretending to be Google
Google explains how to confirm that a visitor claiming to be Google really is: run a reverse DNS lookup on the IP address in your logs, check the hostname ends in googlebot.com, google.com or googleusercontent.com, then run a forward lookup and make sure it returns the original IP.
What it means for your Maryland business
To verify Googlebot, you check that a visitor calling itself Google actually comes from Google's network, so you can block impostors without shutting out the real crawler. Google offers the check for owners worried that spammers or other troublemakers are visiting while claiming to be Google. Verification is worth knowing for Maryland businesses that run their own servers or firewall rules, see heavy bot traffic, or have content worth copying: online stores with pricing, publishers, real estate listing sites and businesses that have been scraped. For a typical hosted site, the work falls to your host or security service, and the task for you is confirming they verify before blocking.
One week, the server of an online furniture store in Elkridge, in Howard County, slows to a crawl. The logs show a flood of requests from something calling itself Googlebot. Before blocking it, the developer runs a reverse DNS lookup, asking which hostname belongs to that IP address, and finds a name that has nothing to do with Google. A second visitor resolves to a googlebot.com address, and a forward lookup on that name returns the same IP, so it's genuine. The impostor gets blocked; the real crawler keeps working.
Blocking by name alone is the main risk, since the user-agent label is a name any visitor can claim, and you don't want to shut out the real crawler. A second is checking only the reverse lookup; Google's method needs the forward lookup too, to confirm the name points back to the original address. A third is misreading Google's crawler types. Common crawlers like Googlebot obey robots.txt, special-case crawlers such as AdsBot may not, and fetchers a person triggers, like Google Site Verifier, ignore it. For large traffic volumes, have your developer automate the check against Google's published IP lists.
In Google's words
“This is useful if you're concerned that spammers or other troublemakers are accessing your site while claiming to be from Google.”
What Google says
Google explains how to confirm that a visitor claiming to be Google really is: run a reverse DNS lookup on the IP address in your logs, check the hostname ends in googlebot.com, google.com or googleusercontent.com, then run a forward lookup and make sure it returns the original IP. For large volumes, match addresses against Google's published IP range lists. Common crawlers always follow robots.txt on automatic crawls, special-case crawlers may not, and user-triggered fetchers such as Google Site Verifier ignore it.
Where to go next
The entries on either side of this one in Getting found by Google.
