Performs a reverse lookup for a certain ip to check if it belongs to Google crawlers
Golang port of is-google nodejs package, it allows to verify that a web crawler is visiting your server using the Google specs.
go get https://github.com/dlion/IsGoogle
package main
import (
"fmt"
. "github.com/dlion/IsGoogle"
)
const (
ip = "66.249.66.1"
)
func main() {
answer, err := IsGoogle(ip)
if err != nil {
panic(err)
}
fmt.Printf("The address %s is belongs to Google: %v\n", ip, answer)
}
go test
Yea, I know that but in my use case is not true :yolo:
MIT
Domenico Luciani @DLion92 https://domenicoluciani.com
Thank you Rocco Musolino for the idea