Block Google IP

1

I have a website where I store access logs via IP, date and time. So far so good, but in some reviews I noticed that there are lots of hits from Google. The captured IPs were:

  

70.42.131.170, 66.249.66.14, 66.249.66.209, 66.249.66.207

To prevent them from being stored, I created a simple conditional:

if($ip != "70.42.131.170" and $ip != "66.249.66.14" and $ip != "66.249.66.209" and $ip != "66.249.66.207"){
   // Aqui faço a inserção dos logs
}

Is there any other way to identify Google through ISP for example without having to remove the robot and / or impact users accessing the site through Google search?

    
asked by anonymous 16.09.2017 / 18:59

0 answers