Limit 1 vote per IP Address?

后端 未结 7 1932
臣服心动
臣服心动 2020-12-06 02:53

What I really want is to limit 1 vote per person but the next best thing i can think of is limit 1 vote per IP address to prevent malicious users/hackers from severely tempe

相关标签:
7条回答
  • 2020-12-06 03:46

    Generally, yes, what you would do is have a database table for the votes, and simply store choice+ip address - then when inserting, do a DB query to see if an entry already exists with the given IP.

    The ideal solution would be to tie votes to user accounts which are in turn linked to more concrete presence (such as a credit card, cell phone, or other less-easily-multiplied identity source).

    What exactly is the question you're asking?

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