如何防止用户在1小时内投票超过一次? [英] How can I prevent users from voting more than once in 1 hour?

查看:204
本文介绍了如何防止用户在1小时内投票超过一次?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

目前我有一个含有CAPTCHA的脚本,在提交时记录用户的IP地址,以防止用户每小时投票超过一次。

At the moment I have a script with CAPTCHA, which on submit logs the users IP address to prevent a user from voting more than once per hour.

很多人都在使用代理来绕过这个投票限制,我想雇用额外的保护。

However, many people are using proxies to get around this vote restriction and I would like to employ additional protection.

我知道有关于这个话题的其他问题,但他们总是涉及人

I realize there are other questions about this topic, but they always involve people wanting users to only be able to vote once, rather than a timed restriction.

感谢您的任何帮助

编辑:我不想强制用户登录

I do not want to force users to login

推荐答案

没有100%的安全方式,每小时一次,但是这里有很少的方法让用户更难以绕过它:

There is no 100% secure way of avoiding people to vote more than once an hour, but here are few methods to make it harder for the users to circumvent it:


  • 在用户计算机上放置cookie

  • 记录其IP

  • 将内容存储到其本地存储(仅适用于使用HTML5浏览器的用户)

  • 真的想开始挖掘更深入,你可以开始根据用户会话长度,他们在投票之前导航了多少页面,即开始概述试图规避系统的用户,并开始限制那些配置文件的用户限制。

  • Place cookies on the users computer
  • Log their IP
  • Store content into their localStorage (only for users with HTML5 browsers)
  • If you really want to start digging deeper, you can start putting restrictions based on the users session length, how many pages they navigated prior to voting, i.e. starting to profile the users that try to circumvent the system, and start putting restrictions on those profiled users.

这篇关于如何防止用户在1小时内投票超过一次?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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