The GoogleBot Checker is now available in Google Colab!
- Charly Wargnier
- Sep 17, 2020
- 2 min read
Sneaky crawlers, spammers or other troublemakers are constantly accessing your website while claiming to be Googlebot (a method called IP spoofing).
Thus, verifying Googlebot is a cornerstone to any decent log analysis - that is, if you wanted to get your SEO metrics right! :)
Today I’m excited to make the Googlebot Checker tool I used in my server logs automation script available separately (you can check my Search Engine Land column for more details about automated server logs cleansing).
Feel free to use this anti spoofing tool in your own projects or integrate it to your own code!
Credit where credit is due, the notebook is an extended port of SearchTools.io, created by the amazing Tyler Reardon.
What the script does
As per Google’s instructions, the script verifies that IP addresses in your uploaded .csv are genuinely from Googlebots, via a series of reverse/forward DNS lookups:
First, it runs a reverse DNS lookup on the IP addresses provided.
It then verifies that the domain name is a subdomain of either googlebot.com or google.com.
It finally runs a forward DNS lookup on the hostname and verifies it matches the original IP address.
Compared to the online version, the notebook also has a few extra tricks up its sleeve:
You can upload your own .csv and get an .csv export with the labelled results (true for genuine, false for not genuine)
The script de-dupes IP addresses before the DNS lookups, speeding up processing time + mitigating potential errors.
Schema for CSV upload
Your csv can have many columns yet should contain:
One column IP addresses, named ’IP’
One column with your all user agent strings, named: ’userAgent’ (capital ‘A’)
Here’s a sample file you can try out.
Note that these reverse-DNS checks are currently spanning Googlebots only. Bingbots and more user agents will be added soon.
Keep safe and reach out on Twitter if questions! ✌️
EDIT: This blog has been re-uploaded due to ddos attack, and was initially published on April 3rd 2020



It all started because of my terrible commute. Two hours each way, if the traffic was kind, which it never was. I was drowning in the monotony of it—the same podcast voices, the same bumper-to-bumper glare, the same feeling of my life slowly ticking away in a metal box on the highway. I needed a distraction, something, anything, to look forward to during my lunch break that wasn't just scrolling through social media. I’d seen an ad somewhere, and one Tuesday, out of sheer, utter boredom, I decided to see what all the fuss was about. I typed the address into my phone: the vavada casino official website.
The first thing that struck me was how… normal it felt. I…