Herself's Webtools

Scripts, HowTos, Templates, Plugins, Widgets, Tips

How to keep your IP number out of your Awstats

without comments

I started using Awstats to track website activity. It came with cPanel and does a nice job.

However it was tracking my IP number as well. So I read the Awstats directions which tell you to put your *.conf file in your /etc directory. That doesn’t work. You must put your *.conf file in /tmp/awstats.

Ok so we got that far but every night the *.conf files were overwritten by Awstats removing the
SkipHosts=”111.111.111.111″
entry.

It turns out you must also change the file permissions to 0444 to prevent Awstats from overwriting your file each night.

So
1) edit your config file and change the SkipHosts=”" to contain your IP number
SkipHosts=”111.111.111.111″

2) Put this file in /tmp/awstats

3) Chmod the file to 0444

Written by Linda MacPhee-Cobb

June 30th, 2008 at 5:00 am

Posted in how to

Leave a Reply

You must be logged in to post a comment.