What are the implications of offering a public voting system (no sign-in required)?

半城伤御伤魂 提交于 2019-12-03 07:39:35

As you said, you'll need to handle robot behavior.

If you log an IP address, you'll have problems with corporate users which usually stay behind a proxy, so everyone seems to have same IP.

Maybe you should to display some CAPTCHA image to validate human votes. Can't be that hard for users, since it's suppose to vote only once.

EDIT: How to enforce one vote per user?

You can:

  • Ask for a valid email and send a link to vote
  • To log your user in and let it vote
  • Let user vote and save a cookie
  • Let user vote and ban user IP

All this options have a weakness, so you'll never be sure.

To handle this problem "definitely", you'll probably need to bind their virtual identity with their real identity. This can be done by asking for personal information and keeping it. But that brings a whole new problem set.

First of all, be sure the voting uses POST to prevent robots and pre-caching clients to cause a vote.

Restricting IP addresses will cause problems with dynamic IP ranges, proxies and people sharing a connection, so I wouldn't go this way. Most of those systems remember that a user a voted using a cookie, but this can of course easily be tricked by deleting the cookie or just using a different browser.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!