Page 1 of 1

Cpanel - Awstats

PostPosted: Wed Dec 05, 2007 6:18 am
by AdMan
There are certain IP Addresses that I would like to block from Awstats, namely mine, googlebots, etc

How can I block these IP addresses from showing up on awstats?

PostPosted: Thu Dec 06, 2007 10:31 pm
by scott
Hello :)

The following is the easiest way to block your IP address from being logged in to awstats:

In the 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 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 local IP address in between the quotes for SkipHosts then upload the file back to where it was.

You can get your local IP address using the following link:

http://whatismyip.com


That’s it! :D

awstats files

PostPosted: Fri Dec 07, 2007 6:07 am
by AdMan
I just checked and can't find that file anywhere.

Is it is a directory of some sort?

PostPosted: Fri Dec 07, 2007 11:49 am
by ajay
Please check the tmp directory for web stat related files.

The file path is tmp/awstats/awstats.express-marketing.com.conf

:D

PostPosted: Fri Dec 07, 2007 11:51 am
by AdMan
cool... found it....
thanks.