X-Git-Url: https://git-public.kairo.at/?p=php-utility-classes.git;a=blobdiff_plain;f=include%2Fclasses%2Fuseragent.php-class;h=840a3987bf29af50b9b0dc8dd6c254eac3b36493;hp=94a17529da81a173d6753f21df773b75e3c438aa;hb=4e8c44da4b14508bb68da58c20d00e2fc887846d;hpb=5b8eba2a5c4c224ecb1799a7341430018f5564fa;ds=sidebyside 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;