How to Exclude an IP Address from AWStats: A Step-by-Step Guide

Excluding an IP address from AWStats can be essential for obtaining accurate website analytics by eliminating internal traffic or specific external sources. This guide will walk you through the process of configuring AWStats to exclude specific IP addresses using cPanel.

  1. Access Your cPanel: Log into your cPanel account. If you’re unsure of how to log in to cPanel please follow this article.
  2. Navigate to File Manager: Once logged in, locate the ‘Files’ section on your cPanel home screen and select ‘File Manager’.
  3. Access AWStats Configuration: In the File Manager, you’ll see a directory listing on the left side. Double-click the ‘tmp’ directory and then the ‘awstats’ directory. You’ll find a file named
  4. Right-click on this file and select ‘Edit’ to modify it.
    Editing awstats tmp file screenshot conor bradley digital agency
  5. Modify the SkipHosts Setting: In the editor, search for the line that starts with SkipHosts=””. Inside the quotation marks, enter the IP address you wish to exclude. If you need to exclude more than one IP address, separate each with a space.
    For example: SkipHosts=”167.339.2.142″
  6. Save Your Changes: After entering the IP addresses, select ‘Save Changes’ to apply the modifications.
    *The changes to the SkipHosts setting will not affect the stats already collected but will be applied to all future data collection.
    Skip host cpanel editing screenshot conor bradley digital agency

Experience Lightning-Fast Loading Speeds!

Secure your spot with the most reliable web hosting service today! Click here to turbocharge your website’s performance and ensure it’s always up and running. Join now and get unbeatable support!



Preventing AWStats from overwriting your configuration file

By default, AWStats may overwrite your configuration file every 24 hours. To prevent this, you need to adjust the file permissions:

  1. Right-click the file in the cPanel File Manager.
  2. Select ‘Change Permissions’.
    Change permissions awstats tmp file screenshot conor bradley digital agency 1
  3. In the ‘User’ column, uncheck the ‘Write’ box to set the permissions to 444, allowing read access only.
  4. Select ‘Change Permissions’ to finalise.
  5. Modifying Permissions for Future Edits: Should you need to edit the file again, check the ‘Write’ box in the ‘User’ column to set the permissions to 644, make your necessary edits, and then revert to read-only mode by unchecking the ‘Write’ box.
    Editing awstats permissions conor bradley digital agency 1

By following these steps, you can effectively exclude an IP address from AWStats, helping to ensure that your website statistics are as accurate as possible. This setup will contribute significantly to a more precise analysis of your site’s traffic and user engagement.


A delay of just one second in page response can result in a 7% reduction in conversions!

Your website’s speed is the first impression you make on a user. And as the saying goes, you only get one chance to make a first impression. So, why risk it? Let us work our magic!