From: robert Date: Thu, 3 May 2007 10:19:53 +0000 (+0000) Subject: add knowledge about the Heritrix bot X-Git-Url: https://git-public.kairo.at/?a=commitdiff_plain;h=4e8c44da4b14508bb68da58c20d00e2fc887846d;p=php-utility-classes.git add knowledge about the Heritrix bot --- diff --git a/include/classes/useragent.php-class b/include/classes/useragent.php-class index 94a1752..840a398 100755 --- a/include/classes/useragent.php-class +++ b/include/classes/useragent.php-class @@ -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;