Two more bots to handle
authorJoey Schulze <joey@infodrom.org>
Fri, 7 Aug 2009 19:48:16 +0000 (19:48 +0000)
committerJoey Schulze <joey@infodrom.org>
Fri, 7 Aug 2009 19:48:16 +0000 (19:48 +0000)
lib/core.inc

index 67e91ee..1242912 100644 (file)
@@ -170,6 +170,8 @@ function is_spider()
       strpos($_SERVER['HTTP_USER_AGENT'], 'Nutch-1.0') !== false ||
       strpos($_SERVER['HTTP_USER_AGENT'], 'Tagoobot/3.0') !== false ||
       strpos($_SERVER['HTTP_USER_AGENT'], 'SapphireWebCrawler/1.0') !== false ||
       strpos($_SERVER['HTTP_USER_AGENT'], 'Nutch-1.0') !== false ||
       strpos($_SERVER['HTTP_USER_AGENT'], 'Tagoobot/3.0') !== false ||
       strpos($_SERVER['HTTP_USER_AGENT'], 'SapphireWebCrawler/1.0') !== false ||
+      strpos($_SERVER['HTTP_USER_AGENT'], 'BotOnParade') !== false ||
+      strpos($_SERVER['HTTP_USER_AGENT'], 'SurveyBot/2.3') !== false ||
       strpos($_SERVER['HTTP_USER_AGENT'], 'Cityreview Robot') !== false) {
     if (isset($_SESSION['uid']))
       $_SESSION['robot'] = true;
       strpos($_SERVER['HTTP_USER_AGENT'], 'Cityreview Robot') !== false) {
     if (isset($_SESSION['uid']))
       $_SESSION['robot'] = true;