Jump to content

Exclude Myself From Awstats?


Recommended Posts

Hi everyone. I'm new to this whole web hosting thing, but so far TCH has really been great. I very much appreciate these forums!

 

Anyway, is there any way to filter hits from my own computer from being recorded by AWStats? I see this in the conf file:

># Do not include access from clients that match following criteria.
# If your log file contains IP adresses in host field, you must put here
# matching IP adresses criteria.
# If DNS lookup is already done in your log file, you must put here hostname
# criteria.
# Note: Use space between each value.
# Example: "127.0.0.1 163.84. 201.101.51.1"
# Example: "localhost abcxyz"
# Default: ""
#
SkipHosts=""

Which seems great, but I was hoping to avoid having to put my actual IP in there, since it changes every so often. The "localhost" bit seems promising, but I've tried every permutation of "Christopher-Biaginis-Computer.local" I can think of, and I still show up in the traffic reports.

 

This fact, combined with the fact that the novelty of having my own domain name causes me to click it every 30 seconds, results in some very inaccurate logs!

 

I'd appreciate any help you folks can offer!

Link to post
Share on other sites

I havent had a dynamic IP in a few years but have you tried 127.0.0.1? How about the first 2 of the IP range you are given, the 127.0 part? Wouldn't be perfect as it would stop everyone from your ISP to be counted.

 

I will see if I can find anything else.

Link to post
Share on other sites

Thanks for the quick reply!

 

I hesitated to include anything generic like "127.0.0.1" or "localhost" since every computer refers to itself by those, right? I tried them, though, and they didn't work..

 

I can type "http://christopher-biaginis-computer.local/" into my web browser and I get the page that my own computer is serving. I was hoping that this was good enough to identify my computer to AWStats, but I guess not.

 

It's not a huge deal, really. Thanks much for your help, though! I'm a student and I like to learn about this stuff :blink:

Link to post
Share on other sites

Chris, you are correct, 127.0.0.1 and localhost refer to the computer itself, not another computer on the network. If you use those on the SkypHosts

 

If you have a dynamic IP address, you don't have a way to keep yourself from being tracked by AWStats. Unless, as Rob said, you are willing to sacrifice a lot of your ISP clients' visits to your site.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...