Neuer Spider
authorJoey Schulze <joey@infodrom.org>
Sat, 9 Apr 2011 20:16:28 +0000 (20:16 +0000)
committerJoey Schulze <joey@infodrom.org>
Sat, 9 Apr 2011 20:16:28 +0000 (20:16 +0000)
lib/core.inc

index 81aea3a..2fb83f3 100644 (file)
@@ -190,6 +190,7 @@ function is_spider()
       strpos($_SERVER['HTTP_USER_AGENT'], 'Linguee Bot') !== false ||
       strpos($_SERVER['HTTP_USER_AGENT'], 'findlinks/2') !== false ||
       strpos($_SERVER['HTTP_USER_AGENT'], 'SiteBot/0.1') !== false ||
       strpos($_SERVER['HTTP_USER_AGENT'], 'Linguee Bot') !== false ||
       strpos($_SERVER['HTTP_USER_AGENT'], 'findlinks/2') !== false ||
       strpos($_SERVER['HTTP_USER_AGENT'], 'SiteBot/0.1') !== false ||
+      strpos($_SERVER['HTTP_USER_AGENT'], 'Purebot/1.1') !== 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;