I am using awstats to log my server traffic and am very pleased. One problem is that I am traveling a lot and I do not want my traffic counted in awstats.

Do you have any good idea on how I can ignore my visits?

My first thought is to somehow use cookies. I have added a new logformat to my apache server according to http://www.crumpeta.com/adding_cookie_information_to_apache_log_files. Is it possible to filter cookies within awstats in order to ignore me?

link|improve this question

50% accept rate
If one person's browsing is significant enough to skew the stats dramatically, why care about them? – ceejayoz Aug 20 '09 at 15:33
Thats true, but even if it is some small ratio why should I have my own visits counted? – user17562 Aug 20 '09 at 17:22
feedback

4 Answers

up vote 1 down vote accepted

Another option would be adding a second vhost that only you use that doesn't log traffic to the main log that awstats reads.

link|improve this answer
This is a good idea, but not an optimal idea. For the moment I can have as many virtual hosts as I want but what if I start to use a web hotel or something similar. – user17562 Aug 20 '09 at 17:20
feedback

Do you browse from a static or dynamic IP? If it's a static IP (most business grade internet connections will have this), have a look at the SkipHosts parameter in your awstats configuration file.

link|improve this answer
1  
I do not have a static IP, this is a personal project that I am working with on my spear time. – user17562 Aug 20 '09 at 10:31
feedback

You could set up and additional VirtualHost with the same DocumentRoot and related parameters as your main site but with a different ServerName. To work, the internal links in your own site would need to be local.

You can extract the related log entries from a single set of log files or set up different ErrorLog and CustomLog for your new VirtualHost.

link|improve this answer
feedback

Yes, you can use a special config in your awstats config file, il order to ignore specific accesses.

Use something like :

LogFile="grep -v YOUCOOKIESTRING /var/log/apache2/access.log |"

In your /etc/awstats/awstats.yoursite.conf file.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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