Welcome to WebmasterWorld Guest from 54.145.13.215

Forum Moderators: DixonJones & mademetop

Message Too Old, No Replies

REGEX in AWSTATS

REGEX, AWSTATS, range

     
10:01 pm on May 3, 2009 (gmt 0)

Junior Member

5+ Year Member

joined:Apr 16, 2009
posts: 43
votes: 0


How do I specify an IP address range for SkipHosts in an AWSTATS conf file?

I am trying to filter out my own admin traffic from the awstats logs but unfortunately my ISP's netmask is not as simple as 24 bit, 16 bit, etc. but rather something like this:

72.92.128.0/19

Currently, whenever my own IP address changes by the ISP, I simply update the SkipHosts list:

SkipHosts="REGEX[^71\.169\.] REGEX[^71\.161\.] REGEX[^72\.92\.]"

However, this is inconvenient and I would like to set it once and for all but I got lost in the syntax.

Is there a simple way to simply filter out 72.92.128.0/19?

Thanks.

2:37 am on May 4, 2009 (gmt 0)

Preferred Member

10+ Year Member

joined:May 27, 2005
posts:614
votes: 0


How do you do it 'normally'?
I would love to be able to filter out my interal traffic from my awstats
12:01 am on May 5, 2009 (gmt 0)

Junior Member

5+ Year Member

joined:Apr 16, 2009
posts: 43
votes: 0


How do you do it 'normally'?

Just as I described above: in AWSTATS's .conf file (directory location varies among web hosts) I modify the line:

SkipHosts=""

To:

SkipHosts="REGEX[^71\.169\.] REGEX[^71\.161\.] REGEX[^72\.92\.]"

Now... REGEX, by definition, is great for strings. But 72.92.128.0/19 is not just a string, it is a mathematical notation (aka CIDR, or "Classless Inter-Domain Routing").

Any idea whether there is a way to use this CIDR notation in AWSTAT to filter out all addresses covered by it?