问题描述
我打算在我经营的网站上添加一些投票/否决按钮.这似乎很容易,但是我想阻止人们多次投票.一种解决方案是在允许他们投票之前让他们注册,但我不想强迫他们注册.
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地址,cookie,我真的不记得了.
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.
这篇关于停止用户在网站上多次投票的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!