|
Posted by jojo on 10/14/06 10:15
kelvoon@hotmail.com wrote:
> Thx for help... Now I have an idea for how does the system work.
> But now i hv another question need to ask
> just like richard mention...
> how do I know the person didn't sit there spending hours clicking away
> generating hits all day long?
>
AFAIK there is no absolutely reliable way. One possibility is to save
the users IP together with the click and if another click comes from the
same IP within let's say half an hour, you ignore that click. but of
course somebody can for example use any anonymizer and surf the internet
through different proxys and then his/her IP would be useless. And in a
network all computers have the same internet IP, so you would only
recognize one click from within that network in half an hour, even if
different people are clicking the add.
Another possibility is to use PHP sessions. Just start a session when
the user clicks the add (This would need the way to track the clicks I
described. you can simply add sessin_start() in the php-file which is
opened when you click the url) and set any var. turn session_expire to
half an hour. if the var is still set when the user clicks the next time
you can again just ignore that click. But this way would not work if
somebodey does not accept session-coockies in his browser or deletes the
coockie from your site.
Just a few ideas again, don't know if they work, never tested it.
Perhaps you can use both methods together or a mixture of both.
HTH, jojo
[Back to original message]
|