阻止用户在网站上多次投票 [英] Stopping users voting multiple times on a website

查看:25
本文介绍了阻止用户在网站上多次投票的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我打算在我运行的网站上添加一些投票赞成/反对投票的按钮.这似乎很容易,但我想阻止人们多次投票.一种解决方案是在允许他们投票之前让他们注册,但我不想强迫他们注册.

I'm planning to add some vote up/vote down buttons to a website I run. This seems easy enough but I want to stop people voting multiple times. One solution would be to make them register before allowing them to vote but I'd prefer not to have to force them to register.

是否有一种相当简单的方法来做到这一点?检查 IP 地址似乎不是一个好的解决方案,因为多个用户可能来自同一个 IP 地址.

Is there are a reasonably straightforward way of doing this? Checking the IP address doesn't seem like a good solution, since it's possible that multiple users may come from the same IP address.

Cookie 可能是答案,但精明的用户可以删除 Cookie.有什么更好的想法吗?

Cookies might be the answer, but a savvy user could delete the cookie. Any better ideas?

推荐答案

抱歉我没有有用的答案,我只是想分享我的经验.

Sorry I don't have a useful answer, I just want to share my experience.

大约 8 年前,我在一个运行在线民意调查的网站工作.我们曾经被一些机器人黑掉了,他们对我们的一些问题进行了投票,每分钟能投几百票.

About 8 years ago I worked for a site that ran online polls. We once got hacked by some bots voting on some of our questions several hundred votes a minute.

我不得不执行一些紧急检查:IP 地址、cookies,我真的不记得还有什么了.

I had to implement some emergency checks: IP address, cookies, and I really don't remember what else.

最终,我们决定取消投票.那些该死的机器人根本不在乎.IP 地址被欺骗、cookie 被删除等.

At the end of the day we decided to take the polls down. Those damn robots just didn't care. IP adresses were spoofed, cookies were being deleted, etc.

如果你真的需要民意调查不可破解,我看不出有任何其他方式需要注册和使用验证码来避免机器人注册新帐户.

If you really really need the polls to be unhackeable I don't see any other way that requiring registration and using captchas to avoid bots signing up for new accounts.

可悲的是,这只是一个娱乐网站,可以对您最喜欢的颜色以及诸如此类的事情进行民意调查.

And the sad thing is that this was just an entertainment site with polls on what's your favorite color and things like that.

我们唯一没有尝试的是使用验证码,因为当时它们还不存在.这可能大大减少了非人类作弊.

The only thing we didn't tried was using captchas because they didn't exist at the time. That might have reduced non-human cheating a good deal.

不要将此作为任何专家建议,因为那是我唯一一次与在线民意调查有关,但我记得我的故事并想分享.

Don't take this as any kind of expert advice on the matter, because that was the only time I had anything to do with online polls, but I remembered my story and wanted to share.

这篇关于阻止用户在网站上多次投票的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆