What is a reliable method to record votes from anonymous users, without allowing duplicates

前端 未结 8 1970
广开言路
广开言路 2021-01-30 11:16

First of all, I searched as best I could and read all SO questions that seem relevant, but nothing specifically answered this. This is not a duplicate, afaik.

Obviously

相关标签:
8条回答
  • 2021-01-30 11:44

    If you're not looking at authenticating voters, then you're going to be getting some duplicate votes no matter what you use. I'd use a cookie, and have done with it for the anonymous users.

    UserVoice allows both anonymous voting and voting when logged in, but then allows the admin to filter out anonymous votes - a nice solution to this problem.

    0 讨论(0)
  • 2021-01-30 11:49

    I'd collect as much data about the session as possible without asking any questions directly (browser, OS, installed plugins, all with versions numbers, IP address etc) and hash it.

    Record the hash and increment a counter if you want multiple votes to be allowed. Include a timestamp (daily, hourly etc) in the salt to make votes time sensitive, say 5 votes per day.

    0 讨论(0)
提交回复
热议问题