Marketing With Miles The Marketing Edge: Internet marketer Miles Baker interviews successful online marketers, finds out what they do, how they do it, and what gives them the marketing edge.

  • Subscribe by RSS

Oct 24 2006

Block Your Own IP Address in Awstats

AwstatsIf 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.

  1. Ron

    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.

  2. Deccan Chronicle

    Good Idea.. I never though about blocking my own IP address… but it makes sense.

  3. Shaun

    Yes, good idea. Thanks Miles.

  4. jp

    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.

  5. Silver

    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.

No Trackback/Ping.

Join In, Share Your Thoughts and Leave a Comment...