View Full Version : awstats question
Anonymous
03-03-2003, 01:19 AM
Is there a way to add an ip address or hostmask to ignore when calculating the stats? My ip has been the same for over a year and would like to not include it in the stats given so I can see the stats reflecting real visitors and not just me refreshing the page over and over when adding new content or messing with the layout.
hello brandon
i have been talking to several people trying to figure out if this is possible for my own site...soon as i get a way i'll pass it on to you guys
eugene
03-03-2003, 11:17 PM
Nick-
In the file /var/www/cgi-bin/awstats/awstats.conf
Lines: 381-395
# Do not include access from clients that match following criteria.
# If your log file contains IP adresses in host field, you must enter here
# matching IP adresses criteria.
# If DNS lookup is already done in your log file, you must enter here hostname
# criteria, else enter ip address criteria.
# The opposite parameter of "SkipHosts" is "OnlyHosts".
# Note: Use space between each value.
# Note: ^xxx means hosts starting with xxx.
# Note: xxx$ means hosts ending with xxx.
# Change : Effective for new updates only
# Example: "^127.0.0.1$ ^163.84."
# Example: "localhost abcxyz"
# Default: ""
#
SkipHosts=""
Line 395 ( <span style='color:blue'>SkipHosts="" </span>) needs to be modified.
-Eugene
hello eugene
im sure i speak for all of us wanting to know this..thanks!!
eugene
03-04-2003, 12:41 AM
I suggest that all users secure their awstats directories.
In ENSIM, you can go to
Files & Directories | Manage Web Groups
[list]Add a group (for example, "statsgroup")
Now, add at least one user to that group (Manage Users)
The next step is to secure the /awstats/ directory.
[list] link.
Scroll down to "/var/www/html/awstats/" and click the lock icon. Set the AuthName to anything you wish (for example, "Site Stats"), select a group, and click "Protect".[list]
There is one more directory you need to protect. Unfortunately, this one is not as direct as the previous one.
If you are on ENSIM1, you can copy and paste this URL into your browser. Please adjust for hosting on other machines.
[list]
https://216.12.208.216:19638/webhost/services/virtualhosting/siteadmin/services/apache/form_htaccess?fullpath=/home/virtual/site130/fst/var/www/cgi-bin/awstats&path=/var/www/cgi-bin/awstats
This will allow you to protect the cgi-bin/awstats directory. (Ensim only displays directories under '/var/www/html'). I suggest you set the same AuthName and group settings as you had on the previous protect operation.
-Eugene
Thomas Sakoulas
04-23-2003, 09:49 PM
I tried the process Eugene described and I was able to protect the "/var/www/html/awstats/" directory
However when I used the url to lock "cgi-bin/awstats" it simply returns a message that it "Failed to protect directory".
Any ideas?
Thanks
eugene
04-23-2003, 10:38 PM
Thomas, although you got a "Failed to protect directory" message, did you check to see whether it worked? Also, the IP address in the url should be the IP of the machine your account is on, which is not necessarily the one on which I had that account. Private message me if you need help.
-Eugene
Thomas Sakoulas
04-24-2003, 09:08 AM
Thank you for your reply eugene,
the IP address is the same, and I tried it several times. Some times I got this error:
-----------------------------------
An error has occured:
Traceback (innermost last):
File /usr/lib/python2.1/site-packages/ZPublisher/Publish.py, line 171, in publish
File /usr/lib/python2.1/site-packages/ZPublisher/mapply.py, line 160, in mapply
(Object: manage_sethtaccess)
File /usr/lib/python2.1/site-packages/ZPublisher/Publish.py, line 112, in call_object
(Object: manage_sethtaccess)
File /home/build/fcs/serverxchange/3.1.1/30/lwp/gauri30/WebGui/base/services/apache/apache.py, line 573, in manage_sethtaccess
File /home/build/qa/webppliance/3.1.4/1/lwp/gauri1/WebGui/common/BaseHandler.py, line 80, in setLastActionStatus
KeyError: lastActionStatus
--------------------------------
The protection almost seems to work except for the fact that the awstats page loads and it is visible behind the login window. Ideally, nothing should load on the browser unless the correct username and password has been accepted.
Any ideas are welcome,
eugene
04-24-2003, 10:50 PM
Please make sure that the "url string" you used is the CORRECT one for your site.
Thomas Sakoulas
04-25-2003, 12:11 AM
Thank you for the reply eugene.
I am not sure what you mean by the "correct" string. I copied the url from your previous message, and made sure the IP address is correct for my site.
regards,
eugene
04-25-2003, 12:30 AM
My string was:
https://216.12.208.216:19638/webhost/services/virtualhosting/siteadmin/services/apache/form_htaccess?fullpath=/home/virtual/site130/fst/var/www/cgi-bin/awstats&path=/var/www/cgi-bin/awstats
I assume this means that my account is site130. You (and anyone else) will need to modify this to represent your own site string.
Check your private messages.
-Eugene
eugene
04-25-2003, 10:21 AM
In ENSIM, open the "Protect Directories" link in a new window. Click on any unprotected directory link, for example, "/var/www/html/awstats".
Your browser will display a location URL like (the following is MY string):
https://216.12.208.216:19638/webhost/services/virtualhosting/siteadmin/services/apache/form_htaccess?fullpath=/home/virtual/site130/fst/var/www/html/awstats&path=/var/www/html/awstats
Copy your own URL string and modify it as I described in my posts. I made a posting on this subject in "HostPC Internet Services Forum Index -> Suggestion Box" under the title "Securing AWSTATS".
http://www.hostpc.com/phpbb/viewtopic.php?t=215
-Eugene
Thomas Sakoulas
04-25-2003, 02:29 PM
Eugene,
thanks thanks for your patience. It works like a charm now :D
Powered by vBulletin™ Version 4.0.3 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.