PDA

View Full Version : AWStats Regular Expressions


AdamJThompson
11-17-03, 10:09 AM
I'm trying to set up AWStats (which is mostly working now, I think), and under the "SkipHosts=" parameter, I'm trying to have it NOT register hits from hosts of a certain domain and also a certain IP address (my own). Apparently I'm misundertanding how I'm supposed to use a regular expression. Here's what I'm trying:

SkipHosts="111.111.111.111 REGEX[\.domainidontwant\.com$]"

The IP address is ignored just fine, but hits from the domainidontwant.com hosts are still included in my totals.

Does anyone know how to create an expression that does what I'm trying to do?


Adam

AdamJThompson
11-19-03, 05:05 PM
Perhaps I figured it out.

It seems that this wasn't working because AWStats performs the DNS lookup BEFORE processing the "SkipHosts" list. Regular expressions seem to work well using IP addresses though. Not as convenient, but this works:

SkipHosts="REGEX[^123\.45\.67\.]"

It now skips anything starting with "123.45.67." when it processes the stats.


Adam