Block Your Own IP Address in Awstats
Posted: October 24th, 2006 | Filed under: Internet Marketing | 5 Comments »
If you’re like me you look at your site several times a day, when I am designing I do 100 to 200 pageviews sometimes, this could really mess up my statistics in Awstats (standard statistics reporting in Cpanel). Well, there’s an easy way to block your IP address from being logged.
In your home directory of your website (this is the directory above public_html) you will see a file named awstats.yoursite.com.conf.
Download the file, open it, and find this part…
# Do not include access from clients that match following criteria.
# If your log file contains IP adresses in host field, you must put here
# matching IP adresses criteria.
# If DNS lookup is already done in your log file, you must put here hostname
# criteria.
# Note: Use space between each value.
# Example: "127.0.0.1 163.84. 201.101.51.1"
# Example: "localhost abcxyz"
# Default: " "
#
SkipHosts=" "
Simply insert your IP address in between the quotes for SkipHosts then upload the file back to where it was. You will also need to CHMOD the file to 444 so your changes won’t be overwritten the next time your server updates.
That’s it! Now when you view your own site you won’t be screwing up the stats and will get a more accurate reporting of your pageviews. You can find your IP address by visiting this site.

Thank you for posting this!
It seems like I’m always editing something and it messes up my stats bigtime. Now I can see my true stats without counting my own visits.
Good Idea.. I never though about blocking my own IP address… but it makes sense.
Yes, good idea. Thanks Miles.
Thank you! I have been looking for a way to do this forever. You’d think they would update CPanel and add this option to it. I’ve seen countless others looking for a way to do this on the Internet.
Thanks for posting this! I, too, was messing up my stats big time due to numerous edits. Looking forward to see a more accurate reflection of my visitors now. Cheers.