Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have AWStats configured to run on my website, but I would like it to exclude hits coming from myself (localhost) that are seen as originating from these ip addresses:

127.0.0.1
192.168.0.1

How can I configure this?

share|improve this question
add comment

2 Answers

up vote 1 down vote accepted

You will need to edit your .conf file, and change the SkipHosts parameter.

For your needs, this would be:

SkipHosts = "127.0.0.1 192.168.0.1"

If your IP address changes on your private network, or if you start accessing your site from multiple computers, you would probably want to match your IP addresses via Regular Expressions.

SkipHosts = "127.0.0.1 REGEX[^192\.168\.]"

For reference, the FAQ is provided here

Note that sometimes localhost hits can also come up as originating from the ::1 ip address, so you may need to add that too.

share|improve this answer
add comment

take a look at this section of the awstats faq, this is the solution to your problem. there are also some examples.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.