add knowledge about the Heritrix bot
authorrobert <robert>
Thu, 3 May 2007 10:19:53 +0000 (10:19 +0000)
committerrobert <robert>
Thu, 3 May 2007 10:19:53 +0000 (10:19 +0000)
include/classes/useragent.php-class

index 94a17529da81a173d6753f21df773b75e3c438aa..840a3987bf29af50b9b0dc8dd6c254eac3b36493 100755 (executable)
@@ -402,6 +402,11 @@ class userAgent {
       $this->version = $regs[1];
       $this->bot = true;
     }
+    elseif (preg_match('|heritrix/([0-9a-zA-Z\.+]+)|', $this->uastring, $regs)) {
+      $this->brand = 'Heritrix';
+      $this->version = $regs[1];
+      $this->bot = true;
+    }
     elseif (preg_match('|Slurp|', $this->uastring, $regs)) {
       $this->brand = 'Slurp';
       $this->version = null;