A Googlenek nem csak egy IP címe van továbbá bárki kuldhet Google UA-t.
Webmastertools-al és Firefox Useragent Switcher-el ellenőrizve.PHP kód:function google(){
if (strpos($_SERVER['HTTP_USER_AGENT'],'Googlebot') > 0){
$host = gethostbyaddr($_SERVER['REMOTE_ADDR']);
if (strpos($host,'googlebot.com') > 0 ) {
return true;
}
}
return false;
}
if (google()) {
echo "Google";
}
{
echo "Nem Google";
}




Válaszol idézettel


