In short, AWStats exclude IP option provides more accurate details about the website visitors. Then, in the User column, we clear the Write checkbox and change the permissions to 444. So, to prevent this, it is important to modify the configuration file permissions in both the above-mentioned methods.įor that, we choose the configuration file for the domain and click on Change File permissions. In such cases, we need to enable the DNS lookup feature in the AWStats configuration file.īy default, AWStats automatically overwrites the configuration file every 24 hours. Sometimes, users may use sub hosts for the network and not sure about the IP addresses. Then, we follow similar steps like editing the SkipHosts line and add the required IP address there. For that, we need to edit the AWStats configuration file present in the /home/user/tmp/awstats. Similarly, we can disable IP addresses from the backend. In this way, we can exclude the required IP’s from AWStats. To exclude more than multiple hosts, use a space between each of them. So, in between the quotation marks, we then type the IP address which we want to exclude.Edit the conf file and locate the line SkipHosts=” “.For instance,, where represents the domain name. Then, we choose the configuration file for the domain.Next, from the directory listing, we choose tmp>awstats.After that, we click on Home Directory>Go.Then, we click on the File Manager in the Files section.So, to exclude an IP address from AWStats, we follow the below steps: Let’s now check how our Support Engineers do it quickly. He doesn’t want his IP address logged in AWStats.Īnd, we can exclude them either via cPanel or from the terminal. Recently, one of our customers approached us to restrict some IP’s from accessing AWStats. As a result, the website statistics will contain the details of only the actual website visitors. So, we attempt to exclude such IP’s from logging into AWStats. Sometimes, website owners may need to avoid entries related to their home IP address in site statistics. We can analyze many factors like the number of visits, pages, hits, Bandwidth, etc. Today, let’s see how our Support Engineers exclude IP from logging into Awstats for our customers.Īs we all know, Advanced Web Statistics or AWStats is a popular log analyzer.ĬPanel servers use them to analyze website traffic summary. And, this depends more on the type of website, server, etc.Īt Bobcares, we often receive requests to exclude IP addresses as part of our Server Management Services. This gives a more accurate report about the site visitors.įortunately, there are multiple ways to exclude certain IP addresses and websites from logging into AWStats. Webmasters often need to exclude home IP address from the website statistics. Create a new Apache virtual host file: nano /etc/httpd/conf.d/ you looking for Awstats exclude IP option?.To set up Apache to work with AWStats, follow these steps: Save the changes and close the text editor.DirData: The directory where AWStats will store its data.SiteDomain: The domain name of your website.LogFile: The path to your Apache log file.Modify the following variables in the configuration file: Edit the newly created configuration file using your preferred text editor: nano /etc/awstats/.Replace “” in the above command with the name of your domain. Copy the example configuration file to a new file: mkdir /etc/awstats cp /var//etc/awstats/.Once AWStats is installed, you need to configure it to analyze your Apache logs. ![]() Move the extracted folder to the Apache web server’s root directory: mv awstats-7.9 /var/www/html/awstats.Extract the downloaded archive using the following command: tar xvzf awstats-7.9.tar.gz.Download the latest version of AWStats using the following command: wget.Install the required dependencies using the following command: sudo dnf install perl-Time-HiRes perl-libwww-perl.To install AWStats on your system, follow these steps: Perl and other required dependencies installed.Apache web server installed and configured.A VPS or dedicated server with a Linux operating system installed.The guide covers all the necessary prerequisites, including installing the required dependencies and the AWStats software, configuring AWStats to analyze Apache logs, setting up Apache to work with AWStats, and updating the AWStats database to analyze Apache logs.īy the end of this article, you’ll have a full understanding of how to install and set up AWStats on your Linux system and start analyzing your Apache logs to get valuable insights into your website’s traffic. This article provides a step-by-step guide on how to set up AWStats on CentOS, RHEL, and Fedora systems.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |