]> git.ipfire.org Git - thirdparty/AWStats.git/commitdiff
Fix: SkipReferrerBlackList renamed into SkipReferrersBlackList
authoreldy <>
Wed, 21 Sep 2005 19:25:48 +0000 (19:25 +0000)
committereldy <>
Wed, 21 Sep 2005 19:25:48 +0000 (19:25 +0000)
docs/awstats_config.html
wwwroot/cgi-bin/awstats.model.conf
wwwroot/cgi-bin/awstats.pl

index 5b8bfc58933941cd1241caf6c0a87d64b62ccee6..949a45e0ac72fbd17710cb32ba50a79cafe18039 100644 (file)
@@ -809,9 +809,9 @@ when reading it), follow the example:<br>
 
 <br><br><hr>
 
-<a name="SkipReferrerBlackList"><b>SkipReferrerBlackList</b></a><br>
+<a name="SkipReferrersBlackList"><b>SkipReferrersBlackList</b></a><br>
 <b>Version : </b>6.5+<br>
-<br># Use SkipReferrerBlackList if you want to exclude records coming from a SPAM
+<br># Use SkipReferrersBlackList if you want to exclude records coming from a SPAM
 <br># referrer. Parameter must receive a local file name containing rules applied
 <br># on referrer field. If parameter is empty, no filter is applied.
 <br># An example of such a file is available in lib/blacklist.txt
@@ -819,8 +819,11 @@ when reading it), follow the example:<br>
 <br># Change : Effective for new updates only
 <br># Example: "/mylibpath/blacklist.txt"
 <br># Default: ""
+<br>
+<br># WARNING!! Using this feature make AWStats running very slower (5 times slower
+<br># with black list file provided with AWStats !
 <br>#
-<br>SkipReferrerBlackList=""
+<br>SkipReferrersBlackList=""
 
 <br><br><hr>
 
index 425e7ccb8df335e854b34554f13b51956e17e13a..b3918ee96294f202b0c8c1bb393dfadf656474ab 100644 (file)
@@ -496,7 +496,7 @@ SkipUserAgents=""
 SkipFiles=""
 
 
-# Use SkipReferrerBlackList if you want to exclude records coming from a SPAM
+# Use SkipReferrersBlackList if you want to exclude records coming from a SPAM
 # referrer. Parameter must receive a local file name containing rules applied
 # on referrer field. If parameter is empty, no filter is applied.
 # An example of such a file is available in lib/blacklist.txt
@@ -505,7 +505,10 @@ SkipFiles=""
 # Example: "/mylibpath/blacklist.txt"
 # Default: ""
 #
-SkipReferrerBlackList=""
+# WARNING!! Using this feature make AWStats running very slower (5 times slower
+# with black list file provided with AWStats !
+#
+SkipReferrersBlackList=""
 
 
 # Include in stats, only accesses from hosts that match one of following
index 901a02ac26b90ba6c51f5473b9ca1f00446525c7..46810b3b7b45f938c37c233cc4e2e6856ca88810 100644 (file)
@@ -1290,7 +1290,7 @@ sub Parse_Config {
                        }
                        next;
                        }
-               if ($param =~ /^SkipReferrerBlackList/) {
+               if ($param =~ /^SkipReferrersBlackList/) {
                        open (BLACKLIST, "<$value") || die "Failed to open blacklist: $!\n";
                        while (<BLACKLIST>) {
                                chomp;
@@ -6391,8 +6391,8 @@ if ($UpdateStats && $FrameName ne 'index' && $FrameName ne 'mainleft') {  # Updat
                # Skip for some client host IP addresses, some URLs, other URLs
                if    (@SkipHosts && (&SkipHost($field[$pos_host]) || ($pos_hostr && &SkipHost($field[$pos_hostr]))))   { $qualifdrop="Dropped record (host $field[$pos_host]".($pos_hostr?" and $field[$pos_hostr]":"")." not qualified by SkipHosts)"; }
                elsif (@SkipFiles && &SkipFile($field[$pos_url]))    { $qualifdrop="Dropped record (URL $field[$pos_url] not qualified by SkipFiles)"; }
-               elsif (@SkipReferrers && $pos_referer >= 0 && &SkipReferrer($field[$pos_referer]))    { $qualifdrop="Dropped record (URL $field[$pos_referer] not qualified by SkipReferrers)"; }
                elsif (@SkipUserAgents && $pos_agent >= 0 && &SkipUserAgent($field[$pos_agent]))        { $qualifdrop="Dropped record (user agent '$field[$pos_agent]' not qualified by SkipUserAgents)"; }
+               elsif (@SkipReferrers && $pos_referer >= 0 && &SkipReferrer($field[$pos_referer]))    { $qualifdrop="Dropped record (URL $field[$pos_referer] not qualified by SkipReferrers)"; }
                elsif (@OnlyHosts && ! &OnlyHost($field[$pos_host]) && (! $pos_hostr || ! &OnlyHost($field[$pos_hostr]))) { $qualifdrop="Dropped record (host $field[$pos_host]".($pos_hostr?" and $field[$pos_hostr]":"")." not qualified by OnlyHosts)"; } 
                elsif (@OnlyFiles && ! &OnlyFile($field[$pos_url]))  { $qualifdrop="Dropped record (URL $field[$pos_url] not qualified by OnlyFiles)"; }
                elsif (@OnlyUserAgents && ! &OnlyUserAgent($field[$pos_agent]))  { $qualifdrop="Dropped record (user agent '$field[$pos_agent]' not qualified by OnlyUserAgents)"; }