E
E
Evgeny Bukharev2015-06-11 15:37:16
PHP
Evgeny Bukharev, 2015-06-11 15:37:16

How can counter cheating be avoided?

Good afternoon,
There is a page, the page has a view counter.
How can you protect the counter from cheating as much as possible?
I planned to use evercookie in them to record the page id and the time it was viewed, if after 24 hours there was no viewing, then turn the counter.
But as it turned out that this is not the best option.
Thanks in advance for your advice!

Answer the question

In order to leave comments, you need to log in

4 answer(s)
Y
Yuri, 2015-06-11
@riky

cookies or ip - it all depends on whether users are motivated to cheat?
if something depends on this, for example, the one who has more unique views wins, then it’s better by SP. with cookies it will be elementary for anyone to wind it up.
if for yourself - and there is no point in cheating users, then cookies are better - there will be a more real figure.

A
Andrey Burov, 2015-06-11
@BuriK666

Count unique visitor IPs.

E
evnuh, 2015-06-11
@evnuh

A cookie is absolutely useless - run a curl request in a loop 1000 times without any cookies - one line in the console.
The only info you can trust is IP. Another question is that it is enough to launch the tor and make requests through it, changing the IP at least on each request. You can try to limit this case to a list of Russian ip, for example. But this is a weak half-measure.
Or check authentication. Use phone number and sms. To extreme emails from popular domains where it is difficult to register new mailboxes, gmail there, microsoft. OpenID will also work. But this is doubtful for the view count)

E
Evgeny Bukharev, 2015-06-11
@evgenybuckharev

As an option, generate a unique id and write it to evercookie, since evercookie is quite difficult to delete or change, it can be assumed that this id will correspond to one user, and then store this id and ip either in a file or in the database to track page visits

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question