Second rule for YaCy
authorJoey Schulze <joey@infodrom.org>
Tue, 9 Jun 2009 20:21:08 +0000 (20:21 +0000)
committerJoey Schulze <joey@infodrom.org>
Tue, 9 Jun 2009 20:21:08 +0000 (20:21 +0000)
lib/core.inc

index 7c4c25b..d7be078 100644 (file)
@@ -166,6 +166,7 @@ function is_spider()
       strpos($_SERVER['HTTP_USER_AGENT'], 'CatchBot/1.0') !== false ||
       strpos($_SERVER['HTTP_USER_AGENT'], 'GingerCrawler/1.0') !== false ||
       strpos($_SERVER['HTTP_USER_AGENT'], 'yacybot') !== false ||
+      strpos($_SERVER['HTTP_USER_AGENT'], 'www.yacy.net') !== false ||
       strpos($_SERVER['HTTP_USER_AGENT'], 'Nutch-1.0') !== false ||
       strpos($_SERVER['HTTP_USER_AGENT'], 'Cityreview Robot') !== false) {
     if (isset($_SESSION['uid']))