This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/bin/bash | |
# | |
# Performs reverse and forward DNS lookups to list Googlebot's IPs, given a list | |
# of IP addresses as a file. Useful for filtering access logs to find out actual | |
# Googlebot visits. | |
# | |
# An implementation of https://support.google.com/webmasters/answer/80553?hl=en | |
while IFS='' read -r IP_ADDRESS || [[ -n "$IP_ADDRESS" ]]; | |
do |