How to exclude an IP address from AWStats statistics Print

  • cPanel
  • 0

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

  • Log in to cPanel.
  • In the Files section of the cPanel home screen, click File Manager.
  • In the directory listing in the left-hand pane, double-click the tmp directory, and then double-click the awstats directory.
  • Select the awstats.example.com.conf file, where example.com represents your domain name, and then click Edit.
  • Locate the following line in the file:

SkipHosts=""

  • Between the quotation marks, type the IP address that you want to exclude. To exclude multiple hosts, use a space between each IP.
  • Click Save Changes.

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.

Was this answer helpful?

« Back