New spider: Baiduspider
authorJoey Schulze <joey@infodrom.org>
Tue, 23 Sep 2008 07:38:32 +0000 (07:38 +0000)
committerJoey Schulze <joey@infodrom.org>
Tue, 23 Sep 2008 07:38:32 +0000 (07:38 +0000)
lib/core.inc

index bb5141b..b6fa783 100644 (file)
@@ -150,6 +150,7 @@ function is_spider()
       strpos($_SERVER['HTTP_USER_AGENT'], 'Yanga WorldSearch Bot') !== false ||
       strpos($_SERVER['HTTP_USER_AGENT'], 'Semager') !== false ||
       strpos($_SERVER['HTTP_USER_AGENT'], 'DotBot') !== false ||
+      strpos($_SERVER['HTTP_USER_AGENT'], 'Baiduspider') !== false ||
       strpos($_SERVER['HTTP_USER_AGENT'], 'Cityreview Robot') !== false) {
     if (isset($_SESSION['uid']))
       $_SESSION['robot'] = true;