Detect more robots
authorJoey Schulze <joey@infodrom.org>
Sun, 29 Aug 2010 10:17:59 +0000 (10:17 +0000)
committerJoey Schulze <joey@infodrom.org>
Sun, 29 Aug 2010 10:17:59 +0000 (10:17 +0000)
lib/core.inc

index 774b43f..9a39761 100644 (file)
@@ -175,6 +175,11 @@ function is_spider()
       strpos($_SERVER['HTTP_USER_AGENT'], 'XmarksFetch/1.0') !== false ||
       strpos($_SERVER['HTTP_USER_AGENT'], 'spbot/2.0') !== false ||
       strpos($_SERVER['HTTP_USER_AGENT'], 'TinEye/1.1') !== false ||
+      strpos($_SERVER['HTTP_USER_AGENT'], 'TurnitinBot/2.1') !== false ||
+      strpos($_SERVER['HTTP_USER_AGENT'], 'CligooRobot/1.0') !== false ||
+      strpos($_SERVER['HTTP_USER_AGENT'], 'libwww-perl') !== false ||
+      strpos($_SERVER['HTTP_USER_AGENT'], 'Wget') !== false ||
+      strpos($_SERVER['HTTP_USER_AGENT'], 'Python-urllib') !== false ||
       strpos($_SERVER['HTTP_USER_AGENT'], 'Cityreview Robot') !== false) {
     if (isset($_SESSION['uid']))
       $_SESSION['robot'] = true;