projects
/
php-utility-classes.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add knowledge about the Heritrix bot
[php-utility-classes.git]
/
include
/
classes
/
useragent.php-class
diff --git
a/include/classes/useragent.php-class
b/include/classes/useragent.php-class
index 94a17529da81a173d6753f21df773b75e3c438aa..840a3987bf29af50b9b0dc8dd6c254eac3b36493 100755
(executable)
--- 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;
}
$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;
elseif (preg_match('|Slurp|', $this->uastring, $regs)) {
$this->brand = 'Slurp';
$this->version = null;