Welcome to WebmasterWorld Guest from 54.234.8.146

Forum Moderators: DixonJones & mademetop

Message Too Old, No Replies

REGEX in AWSTATS

REGEX, AWSTATS, range

     

cssatsc

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

5+ Year Member



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.

netchicken1

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

10+ Year Member



How do you do it 'normally'?
I would love to be able to filter out my interal traffic from my awstats

cssatsc

12:01 am on May 5, 2009 (gmt 0)

5+ Year Member



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?

 

Featured Threads

Hot Threads This Week

Hot Threads This Month