How to ping all of Googlebot's IPs script

First get the json with all the IP ranges

wget https://developers.google.com/static/crawling/ipranges/common-crawlers.json -O google.txt

Use this script to get the results.  It may be smart to grep on "time=" to just get the IPs that returned results/were pingable.

for ip in `cat google.txt |grep ipv4|cut -f 2 -d :|sed 's#"##g'|cut -f 1 -d /`; do
 o1=`echo $ip|cut -f 1 -d .`
 o2=`echo $ip|cut -f 2 -d .`
 o3=`echo $ip|cut -f 3 -d .`
 o4=`echo $ip|cut -f 4 -d .`
 if [ "$o4" == "0" ]; then
   o4=1
 fi
echo ping -w 1 -c 1 $o1.$o2.$o3.$o4 
ping -w 1 -c 1 $o1.$o2.$o3.$o4
done


Tags:

ping, googlebot, ips, scriptfirst, json, ip, ranges, wget, https, developers, google, static, ipranges, crawlers, txt, grep, quot, pingable, ipv, sed, echo, fi,

Latest Articles

  • Debian 11 security repo fixes due to EOL
  • MySQL vs MariaDB how to create a socket user tutorial
  • Ubuntu Linux Mint Desktop Dark Black Cannot See Solution
  • How to combine .txt ACLs without breaking things
  • How to ping all of Googlebot's IPs script
  • 'virtio0' uses a qcow2 feature which is not supported by this qemu version: QCOW version 3
  • Linux bash script to get the IP of a list of hostnames
  • How To Use Camera Webcam in Docker for OBS Studio etc...
  • Computer Server Won't Post Boot Or Enter BIOS Setup After Installing RAID SAS or GPU Card etc..
  • How To Test PHP Scripts from CLI with GET variables/query string
  • apt-cache how to see all available versions of a package in Debian Ubuntu Mint
  • Virtualbox VBox Guest-utils drag and drop files stops working with Windows VMs
  • How To Remove Ubuntu Netplan and Go Back to /etc/network/interfaces
  • How To Force Flash an AMD Instinct GPU To Another Model Using Debian Ubuntu Mint Linux
  • How To compile ollama from source to use unsupported AMD GPU with rocm in Ubuntu Debian
  • QEMU KVM Virtio GPU Windows Cannot Select 1080P
  • Linux Gnome Desktop Ubuntu Mint Debian Gets Slower After Weeks
  • Firefox How to Save Full Page As Screenshot/PDF
  • Nvidia Datacenter Driver Tesla Slow nvidia-smi response and high utilization with 0 usage
  • ffmpeg how to normalize / increase the volume of your audio