|
Posted by Dennis de Wit on 07/27/06 07:55
Mhhh.. My IP address is said to be dynamic. I havent seen it change for
years though. If you know for sure it's pretty much stable you can still
use this method.
Setting a cookie though might also be of some help. On the other hand, I
dont like cookies since you cannot tell wether they will be sent or not.
Dennis
dimo414 wrote:
>> You can check for your own ip address ($_SERVER['REMOTE_ADDR']) and
>> exclude this in your results.
>
> I have to disagree with Dennis. ISP's often change IP addresses, if
> you're running through any kind of router, all other computers
> connected via that router will also be excluded, and if you use a
> laptop and connect wirelessly anywhere but your home, you'll be
> visiting with a different IP address.
>
> Since you're trying to block a computer which you always have access
> to, the easiest thing to do is set a cookie which won't expire for,
> say, ten years. Then have your counter script exclude any visits with
> that cookie set. This has the added benefit that you can apply it to
> any computer you want, and as long as the cookies are not deleted,
> visits from that computer will not be counted.
>
>> You can also make an extra button hidden somewhere on your site to flush
>> the results generated by your current visit. This will help when you
>> visit the website from different computers.
>
> While this method allows for mulitiple computers, IPs, and the like, I
> wouldn't like having to click a button every time I visit my own site,
> I'd imagine you wouldn't either.
>
[Back to original message]
|