From: eldy <>
Date: Sat, 28 Mar 2009 23:14:35 +0000 (+0000)
Subject: Use java/[0-9] to avoid false robot detection
X-Git-Tag: AWSTATS_6_95_BETA~36
X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1caaf94dbda0cf4c41610dbc5bd3bfe950181fa2;p=thirdparty%2FAWStats.git
Use java/[0-9] to avoid false robot detection
---
diff --git a/wwwroot/cgi-bin/lib/robots.pm b/wwwroot/cgi-bin/lib/robots.pm
index 93cb9916..72ca5e0a 100644
--- a/wwwroot/cgi-bin/lib/robots.pm
+++ b/wwwroot/cgi-bin/lib/robots.pm
@@ -957,7 +957,7 @@
'ng\/1\.', # put at end to avoid false positive
'ng\/2\.', # put at end to avoid false positive
'exabot', # put at end to avoid false positive
-'java' # put at end to avoid false positive
+'java\/[0-9]' # put at end to avoid false positive
);
@RobotsSearchIDOrder_listgen = (
# Generic robot
@@ -1596,7 +1596,7 @@
'ng\/1\.','NG 1.x (Exalead)', # put at end to avoid false positive
'ng\/2\.','NG 2.x (Exalead)', # put at end to avoid false positive
'exabot','Exabot', # put at end to avoid false positive
-'java','Java (Often spam bot)', # put at end to avoid false positive
+'java\/[0-9]','Java (Often spam bot)', # put at end to avoid false positive
# Generic root ID
'robot', 'Unknown robot (identified by \'robot\')',
'crawl', 'Unknown robot (identified by \'crawl\')',