add knowledge about the Heritrix bot
[php-utility-classes.git] / 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;