From 5b8eba2a5c4c224ecb1799a7341430018f5564fa Mon Sep 17 00:00:00 2001 From: robert Date: Thu, 22 Mar 2007 00:39:23 +0000 Subject: [PATCH] detect a few bots more ;-) --- include/classes/useragent.php-class | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/include/classes/useragent.php-class b/include/classes/useragent.php-class index 9f4bb2b..94a1752 100755 --- a/include/classes/useragent.php-class +++ b/include/classes/useragent.php-class @@ -417,6 +417,11 @@ class userAgent { $this->version = $regs[1]; $this->bot = true; } + elseif (preg_match('|Microsoft URL Control - ([0-9a-zA-Z\.+]+)|', $this->uastring, $regs)) { + $this->brand = 'Microsoft URL Control'; + $this->version = $regs[1]; + $this->bot = true; + } elseif (preg_match('|([0-9a-zA-Z\.+]+)_AC-Plug|', $this->uastring, $regs)) { $this->brand = 'AC-Plug'; $this->version = $regs[1]; @@ -556,7 +561,7 @@ class userAgent { 'NetResearchServer','LinkWalker','Zeus','W3C_Validator','ZyBorg','Ask Jeeves','ia_archiver', 'PingALink Monitoring Services','IlTrovatore-Setaccio','Nutch','Mercator','search.ch', 'appie','larbin','NutchCVS','ObjectsSearch','Webchat','Mediapartners-Google','Schmozilla', - 'FavOrg','findlinks','DataCha0s','','','','','','','','',''); + 'FavOrg','findlinks','DataCha0s','ichiro','Francis','','','','','','',''); if (in_array($this->brand, $botArray)) { $this->bot = true; -- 2.43.0