Ben böyle birşey kullanıyorum, başkalarından gizleyip googleye göstermek istediklerim için, belki işinize yarar.
<?php
$botip = $_SERVER['REMOTE_ADDR'];
$bothost = gethostbyaddr( $botip );
$verifiedbotip = gethostbyname( $bothost );
if ( $botip = $verifiedbotip ) {
if ( substr($bothost, -14) == '.googlebot.com') {
Googlebota gözükecek veriler
}
else
{
echo "bu icerige sadece googlebot ulasabilir";
}
}
?>