diff --git a/phpab.php b/phpab.php index 3496df7..5083c47 100644 --- a/phpab.php +++ b/phpab.php @@ -29,7 +29,22 @@ function __construct ($n, $t = FALSE) { if($this->detect_bots == TRUE) { - $bots = array('googlebot', 'msnbot', 'slurp', 'ask jeeves', 'crawl', 'ia_archiver', 'lycos'); + $bots = array( + 'googlebot', + 'msnbot', + 'slurp', + 'ask jeeves', + 'crawl', + 'ia_archiver', + 'lycos', + 'bingbot', + 'duckduckbot', + 'baiduspider', + 'yandexbot', + 'facebot', + 'ia_archiver' + ); + foreach($bots as $botname) { if(stripos($_SERVER['HTTP_USER_AGENT'], $botname) !== FALSE)