Removing IP address from Awstats statistics
Why?
To remove certain IP addresses from the overall site statistics in Awstats.
Instructions
In the configuration file /etc/awstats/awstats.<site-name>.conf
, add a SkipHosts
directive specifying IP addresses that will not be counted in the statistics, separating them with a space.
Example of using the directive:
SkipHosts=”192.168.1.1 172.31.55.65”
It is also acceptable to use regular expressions. Regular expressions must be specified in square brackets after the REGEX
parameter, for example:
SkipHosts=”REGEX[<regular-expression>]”