|
Posted by Erik Kullberg on 07/26/06 14:29
Dennis and dimo414 - you have given me a starting point!
The method with the erase button is not for people with my kind of memory,
I'm afrid. The other two methods I will explore further.
Thanks!
/ Erik
"dimo414" <dimo414@gmail.com> skrev i meddelandet
news:1153898121.182575.227630@m73g2000cwd.googlegroups.com...
>> 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.
>
Navigation:
[Reply to this message]
|