function check_bot(){
$botlist = array(
"Teoma",
"alexa",
"froogle",
"inktomi",
"looksmart",
"URL_Spider_SQL",
"Firefly",
"NationalDirectory",
"Ask Jeeves",
"TECNOSEEK",
"InfoSeek",
"WebFindBot",
"girafabot",
"crawler",
"www.galaxy.com",
"Googlebot",
"Scooter",
"Slurp",
"appie",
"FAST",
"WebBug",
"Spade",
"ZyBorg",
"rabaz",
"twiceler",
"bing",
"msnbot");
$bot = false;
foreach($botlist as $row) {
if(eregi($row, $_SERVER['HTTP_USER_AGENT'])) {
#we have a boot
$bot = true;
}
}
return $bot;
}