Bobcares

AWStats exclude IP – Quick Fix!!

by | Nov 13, 2019

Are you looking for Awstats exclude IP option?

Webmasters often need to exclude home IP address from the website statistics. This gives a more accurate report about the site visitors.

Fortunately, there are multiple ways to exclude certain IP addresses and websites from logging into AWStats. And, this depends more on the type of website, server, etc.

At Bobcares, we often receive requests to exclude IP addresses as part of our Server Management Services.

Today, let’s see how our Support Engineers exclude IP from logging into Awstats for our customers.

 

Why AWStats exclude IP addresses?

As we all know, Advanced Web Statistics or AWStats is a popular log analyzer.

cPanel servers use them to analyze website traffic summary. We can analyze many factors like the number of visits, pages, hits, Bandwidth, etc.

Sometimes, website owners may need to avoid entries related to their home IP address in site statistics. So, we attempt to exclude such IP’s from logging into AWStats. As a result, the website statistics will contain the details of only the actual website visitors.

 

How do we exclude IP addresses??

Recently, one of our customers approached us to restrict some IP’s from accessing AWStats. He doesn’t want his IP address logged in AWStats.

And, we can exclude them either via cPanel or from the terminal.

Let’s now check how our Support Engineers do it quickly.

 

1. Via cPanel

So, to exclude an IP address from AWStats, we follow the below steps:

  1. Firstly, we log in to the cPanel.
  2. Then, we click on the File Manager in the Files section.
  3. After that, we click on Home Directory>>Go.
  4. Next, from the directory listing, we choose tmp>>awstats.
  5. Then, we choose the configuration file for the domain. For instance, awstats.domain.com.conf, where domain.com represents the domain name.
  6. Edit the conf file and locate the line SkipHosts=” “.
  7. So, in between the quotation marks, we then type the IP address which we want to exclude. To exclude more than multiple hosts, use a space between each of them.
  8. Finally, we click on Save changes.

In this way, we can exclude the required IP’s from AWStats.

 

2. From terminal

Similarly, we can disable IP addresses from the backend. For that, we need to edit the AWStats configuration file present in the /home/user/tmp/awstats. 

Then, we follow similar steps like editing the SkipHosts line and add the required IP address there.

Sometimes, users may use sub hosts for the network and not sure about the IP addresses. In such cases, we need to enable the DNS lookup feature in the AWStats configuration file.

 

Changing permissions

By default, AWStats automatically overwrites the configuration file every 24 hours. So, to prevent this, it is important to modify the configuration file permissions in both the above-mentioned methods.

For that, we choose the configuration file for the domain and click on Change File permissions.

Then, in the User column, we clear the Write checkbox and change the permissions to 444.

 

[Need help to exclude IP addresses in Awstats?- We’re available 24/7.]

 

Conclusion

In short, AWStats exclude IP option provides more accurate details about the website visitors. In today’s write-up, we saw how our Support Engineers set up Awstats for our customers.

PREVENT YOUR SERVER FROM CRASHING!

Never again lose customers to poor server speed! Let us help you.

Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.

GET STARTED

var google_conversion_label = "owonCMyG5nEQ0aD71QM";

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

Speed issues driving customers away?
We’ve got your back!

Privacy Preference Center

Necessary

Necessary cookies help make a website usable by enabling basic functions like page navigation and access to secure areas of the website. The website cannot function properly without these cookies.

PHPSESSID - Preserves user session state across page requests.

gdpr[consent_types] - Used to store user consents.

gdpr[allowed_cookies] - Used to store user allowed cookies.

PHPSESSID, gdpr[consent_types], gdpr[allowed_cookies]
PHPSESSID
WHMCSpKDlPzh2chML

Statistics

Statistic cookies help website owners to understand how visitors interact with websites by collecting and reporting information anonymously.

_ga - Preserves user session state across page requests.

_gat - Used by Google Analytics to throttle request rate

_gid - Registers a unique ID that is used to generate statistical data on how you use the website.

smartlookCookie - Used to collect user device and location information of the site visitors to improve the websites User Experience.

_ga, _gat, _gid
_ga, _gat, _gid
smartlookCookie
_clck, _clsk, CLID, ANONCHK, MR, MUID, SM

Marketing

Marketing cookies are used to track visitors across websites. The intention is to display ads that are relevant and engaging for the individual user and thereby more valuable for publishers and third party advertisers.

IDE - Used by Google DoubleClick to register and report the website user's actions after viewing or clicking one of the advertiser's ads with the purpose of measuring the efficacy of an ad and to present targeted ads to the user.

test_cookie - Used to check if the user's browser supports cookies.

1P_JAR - Google cookie. These cookies are used to collect website statistics and track conversion rates.

NID - Registers a unique ID that identifies a returning user's device. The ID is used for serving ads that are most relevant to the user.

DV - Google ad personalisation

_reb2bgeo - The visitor's geographical location

_reb2bloaded - Whether or not the script loaded for the visitor

_reb2bref - The referring URL for the visit

_reb2bsessionID - The visitor's RB2B session ID

_reb2buid - The visitor's RB2B user ID

IDE, test_cookie, 1P_JAR, NID, DV, NID
IDE, test_cookie
1P_JAR, NID, DV
NID
hblid
_reb2bgeo, _reb2bloaded, _reb2bref, _reb2bsessionID, _reb2buid

Security

These are essential site cookies, used by the google reCAPTCHA. These cookies use an unique identifier to verify if a visitor is human or a bot.

SID, APISID, HSID, NID, PREF
SID, APISID, HSID, NID, PREF