Re: count clicks to count most important news
| From: | Tedd Sperling | Date: | Sun, 01 Jan 2012 16:49:08 +0000 |
| Subject: | Re: count clicks to count most important news | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-316144@lists.php.net to get a copy of this message | ||
On Jan 1, 2012, at 11:26 AM, muad shibani wrote:
> I have a website that posts the most important news according to the number
> of clicks to that news
> the question is : what is the best way to prevent multiple clicks from the
> same visitor?
Not a fool-proof method, but use Javascript on the client-side to stop users' from continuous
clicking.
Then create a token and verify the click on the server-side before considering the click as being
acceptable.
Cheers,
tedd
_____________________
tedd@sperling.com
http://sperling.com