Go Back   HostGator Peer Support Forums > Public Forums > Suggestions

Notices

Reply
 
Thread Tools
  #1  
Old 09-29-2007, 12:59 PM
CrapDice
HostGator Guest
 
Posts: n/a
Default Exclude my IP from AwStats

Awstats provides the ability to exclude specified IPs from being logged in the stat engine.

To accomplish this, Awstats' site notes:

You must edit the config file to change the SkipHosts parameter.

For example, to exclude:

your own IP address 123.123.123.123, use SkipHosts="123.123.123.123"
the whole subnet 123.123.123.xxx, use SkipHosts="REGEX[^123\.123\.123\.]"
all sub hosts xxx.myintranet.com, use SkipHosts="REGEX[\.myintranet\.com$]" (This one works only if DNS lookup is already done in your log file).

Where is the Awstats config file on shared hosting???
Reply With Quote
  #2  
Old 09-29-2007, 01:18 PM
GvilleRick's Avatar
GvilleRick GvilleRick is offline
Emperor Croc
 
Join Date: Jan 2007
Location: Greenville, SC
Posts: 3,130
Default Re: Exclude my IP from AwStats

The config files are in /tmp/awstats in your home folder. You will also need to change the permissions on it to prevent cPanel from overwriting your changes when it runs. Changing permissions to 444 should work.
Reply With Quote
  #3  
Old 01-14-2008, 08:22 PM
furry's Avatar
furry furry is offline
Baby Croc
 
Join Date: Dec 2007
Location: Michigan
Posts: 77
Default Re: Exclude my IP from AwStats

I've looked until my eyes bled almost, and for the life of me I cannot find where to update the permissions so that my changes aren't removed by cPanel. Can anyone help with this?
Reply With Quote
  #4  
Old 01-14-2008, 08:26 PM
GvilleRick's Avatar
GvilleRick GvilleRick is offline
Emperor Croc
 
Join Date: Jan 2007
Location: Greenville, SC
Posts: 3,130
Default Re: Exclude my IP from AwStats

You can change the permissions using an FTP program or using the File Manager in cPanel. Right click on the file name and you should have an option to change the permissions.
Reply With Quote
  #5  
Old 01-14-2008, 08:31 PM
furry's Avatar
furry furry is offline
Baby Croc
 
Join Date: Dec 2007
Location: Michigan
Posts: 77
Thumbs up Re: Exclude my IP from AwStats

For that fast reply.
Reply With Quote
  #6  
Old 01-14-2008, 08:37 PM
furry's Avatar
furry furry is offline
Baby Croc
 
Join Date: Dec 2007
Location: Michigan
Posts: 77
Default Re: Exclude my IP from AwStats

Ok, I went to change the permissions, they are set to 644 now, but for some reason it will not let me change it to 444. I can highlight the number, but not input a new value.
Reply With Quote
  #7  
Old 01-14-2008, 08:43 PM
GvilleRick's Avatar
GvilleRick GvilleRick is offline
Emperor Croc
 
Join Date: Jan 2007
Location: Greenville, SC
Posts: 3,130
Default Re: Exclude my IP from AwStats

How are you trying to change it? In the File Manager or FTP program? If you are using the File Manager try clicking on the check boxes rather than typing in the numbers.
Reply With Quote
  #8  
Old 01-14-2008, 08:47 PM
furry's Avatar
furry furry is offline
Baby Croc
 
Join Date: Dec 2007
Location: Michigan
Posts: 77
Default Re: Exclude my IP from AwStats

I was using Cpanel, and that worked. Thanks again Rick. I would have never done that, thought it was my browser messing with cPanel lol.
Reply With Quote
  #9  
Old 01-14-2008, 08:49 PM
GvilleRick's Avatar
GvilleRick GvilleRick is offline
Emperor Croc
 
Join Date: Jan 2007
Location: Greenville, SC
Posts: 3,130
Default Re: Exclude my IP from AwStats

Yeah, that's a File Manager bug that has been there for years.
Reply With Quote
  #10  
Old 01-14-2008, 08:51 PM
furry's Avatar
furry furry is offline
Baby Croc
 
Join Date: Dec 2007
Location: Michigan
Posts: 77
Default Re: Exclude my IP from AwStats

Now after I have done this, should it take out the current stats it has for those IPs? Or does it take a while for the change to go into effect?
Reply With Quote
  #11  
Old 01-14-2008, 09:05 PM
GvilleRick's Avatar
GvilleRick GvilleRick is offline
Emperor Croc
 
Join Date: Jan 2007
Location: Greenville, SC
Posts: 3,130
Default Re: Exclude my IP from AwStats

No, once the stats are created they are saved to a file. That information will not change. Future stats runs will omit your IP if you have it listed in the config file to be ignored.
Reply With Quote
  #12  
Old 06-01-2008, 06:24 PM
kujina kujina is offline
Hatchling Croc
 
Join Date: Jun 2008
Posts: 1
Default Re: Exclude my IP from AwStats

I want to exclude multiple IP addresses, is the below correct for three different addresses?

SkipHosts="56.77.212.66 89.53.222.50 99.209.87.127"

I have the line above in my.conf file but I'm definitely geting stats for the last ip address.
Reply With Quote
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

All times are GMT -5. The time now is 07:13 AM.