1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
|
$bots = array (
"library",
"libwww-perl",
"linkchecker",
"lwp-trivial",
"microsoft control",
"minibot(naverrobot)",
"mj12bot",
"msiecrawler",
"msnbot-media",
"xenu link sleuth",
"yacy",
"yandex",
"zeus.*webster",
"zeus",
"zyborg",
"voyager"
);
$brow=strtolower('index.php HTTP/1.0" 200 7080 "-" "Mozilla/5.0 (compatible; MJ12bot/v1.4.5; http://www.majestic12.co.uk/bot.php?+)"');
echo $brow; echo'<br>';
$aspirateur="vide";
foreach ($bots as $bot)
{
if(strpos($brow, $bot) !== FALSE) $aspirateur="aspiOK";
}
echo $aspirateur; |
Partager