Question : hide specific content on page from bot

Hello,
I have a small bit of content inside a div tag
wibble wiblle wibble


I want my customer to see that but I dont want any robots etc. I want robots etc to find my page but not to see that content inside that specific div. Is there a way of hiding that content from them.

regards

k

Answer : hide specific content on page from bot

If you put the names in an array, it would look something like this (sorry - not ASP literate) pidgin code
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
// GET MY AGENT
$my_agent = $_SERVER["HTTP_USER_AGENT"]
 
$bot_agents = array( msnbot, googlebot, slurpcat );
 
$a_ok = TRUE;
foreach $bot_agents as $bot
{
   if ($bot == $my_agent) $a_ok = FALSE;
}
 
if ($a_ok === TRUE) /* PRODUCE THE DIV */
Open in New Window Select All
Random Solutions  
 
programming4us programming4us