se io uso un clocking fatto in questo modo vorrei sapere due cose.
1) può essere bannato da google.
2) lo spider andrà anche nel contenuto della pagina o si limiterà al testo a lui dedicato?

ciao Grazie

function is_bot($user_agent)
{
$user_agent = rtrim($user_agent);
$user_agent = ltrim($user_agent);

$bots_list = @file('bots.txt');
foreach($bots_list as $bot)
{
$bot = rtrim($bot);
$bot = ltrim($bot);
if ($user_agent == $bot)
return true;
}
return false;
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>cloaking</title>
</head>
<body>
<pre>
Parte visibile dall'utente.
<?
if (is_bot($_SERVER["HTTP_USER_AGENT"]))
{
?>
Parte visibile dal bot.
<?
}
?>
</pre>
</body>
</html>