I'm updating some old AWStats config files to filter out some specific IP ranges. Here's the pertinent section of the config file:
# Do not include access from clients that match following criteria.
# If your log file contains IP addresses in host field, you must enter here
# matching IP addresses criteria.
# If DNS lookup is already done in your log file, you must enter here hostname
# criteria, else enter ip address criteria.
# The opposite parameter of "SkipHosts" is "OnlyHosts".
# Note: Use space between each value. This parameter is not case sensitive.
# Note: You can use regular expression values writing value with REGEX[value].
# Change : Effective for new updates only
# Example: "127.0.0.1 REGEX[^192\.168\.] REGEX[^10\.]"
# Example: "localhost REGEX[^.*\.localdomain$]"
# Default: ""
#
SkipHosts=""
I want to, for example, filter out X.Y.Z.[97-110]
I tried this format (Note: Not these IP values, using private range as example):
REGEX[^192\.168\.1\.[97-110]]
But it causes the following error:
CGI Error
The specified CGI application misbehaved by not returning a complete set of HTTP headers.
I hate how everything uses a different RegEx syntax. Does anyone have any idea how this one works, and how I can specify a range here?