Forum Moderators: coopster
/* whitelist: end processing end exit */
if (preg_match("/10\.22\.33\.44/",$REMOTE_ADDR)) { exit; }
if (preg_match("/Super Tool/",$HTTP_USER_AGENT)) { exit; }
/* end of whitelist */
In my blacklist log I saw an entry for googlebot. I looked up the IP and it really does appear to be google. I imagine googlebot uses many IPs. So how do I prevent blacklisting googlebot? For that matter, why is googlebot going to a folder that I exclude in robots.txt?
thanks,
brian
To do this with PHP just takes gethostbyaddr() [php.net] and gethostbyname() [php.net]. :)
why is googlebot going to a folder that I exclude in robots.txt
Probably isn't googlebot. Have you tried validating your robots.txt with them?