in reply to please help to exclude my own IP address.

To be honest, I don't see how this is a big concern. If you're getting statistics based on views, you may as well include your own views in the count - nobody else goes to the bother of removing them. If you're getting statistics based on visits (unique IPs or IP masks), then your visits won't make up a significant percentage of the total, and you may as well include them too.

Best thing to do is just cache the last x number of IPs in a text file and check the current IP against them. People who visit the site several times close together (like you) will only be counted once. If you want, you can also store timestamps, so people who visit your site again after x number of days will be counted even if they're still in the IP cache.

  • Comment on Re: please help to exclude my own IP address.

Replies are listed 'Best First'.
Re^2: please help to exclude my own IP address.
by amalgama (Initiate) on May 03, 2005 at 10:09 UTC
    yes, its looks not bad idea to check the current IP against cached IPs. This will required to have on server an additional text file with IP list? Will this slow down script? What if use cookies?