From 4e8c44da4b14508bb68da58c20d00e2fc887846d Mon Sep 17 00:00:00 2001 From: robert Date: Thu, 3 May 2007 10:19:53 +0000 Subject: [PATCH] add knowledge about the Heritrix bot --- include/classes/useragent.php-class | 5 +++++ 1 file changed, 5 insertions(+) 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; -- 2.35.3