How to exclude an IP address from AWStats statistics

This article describes the way to exclude an IP address from the site statistics that AWStats generates. For instance, you might want to exclude your home IP address so your own site visits don’t distort the statistics.

Excluding an IP address from AWStats

To exclude an IP address from AWStats, follow these steps:

1. Log in to cPanel.

2. In the Files section of the cPanel home screen, click File Manager.

3. In the directory listing in the left-hand pane, double-click the tmp directory, then double-click the AWStats directory.

4. Select the awstats.example.com.conf file, where example.com represents your domain name, and then click Edit.

5. Locate the following line in the file:

    

6. Between the quotation marks, type the IP address that you want to exclude. To exclude multiple hosts, use a space between each value. For instance, the following line shows the way to exclude two IP addresses:

    

7. Click Save Changes.

"Existing AWStats statistics retain the excluded IP address. The SkipHosts setting only affects statistics generated from this point forward."

8. The configuration file is now ready. However, by default AWStats automatically overwrites the file every 24 hours. To prevent this from happening, you must modify the file permissions. To do this, follow these steps:

  • In the cPanel File Manager, right-click the awstats.example.com.conf file, where example.com represents your domain name, and then click Change Permissions.
  • In the User column, clear the Write check box. This changes the permissions to 444 (read access for everyone).
  • Click Change Permissions.


    "If you ever need to edit the file again, choose the Write check box in the User column (to set permissions temporarily to 644), make your changes to the file, then clear the Write check box."
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How can I change a database password on cPanel?

Changing MySQL database password via cPanel You can change your database’s password by...

How can I change my PHP version on cPanel?

Changing PHP version via cPanel Your Hosting Account's PHP version can be changed at any time,...

How can I create a new MySQL database in cPanel?

Creating a new MySQL database at Servers GATE using cPanel   You can easily create a new MySQL...

How can I locate my MySQL database details on cPanel?

Locating your MySQL database details via cPanel You can easily locate your MySQL databases...

How can I set up a redirect on cPanel?

Creating a redirect on cPanel Your hosting redirects can be easily managed with the assistance...