weixin_33734785 2013-02-06 01:43 采纳率: 0%
浏览 31

投票系统按钮修复

I have this website where people can up vote or down vote certain businesses. The voting system uses PHP, MySQL, Javascript and AJAX to function. When a vote is made, the user's IP is put into a database and remembered so they cannot vote again. However, it is possible to use an auto clicker program and set it to click faster than the server can process the voting request, which results in this: http://mcserve.rs/qSmn

I already tried using Javascript to hide/disable the button when clicked until the AJAX request finishes, but that is still too slow.

How can I fix this, or is it fixable at all?

Thanks

EDIT: I know that someone using an auto clicker is a very small percentage but doing so could exploit the entire purpose of the website - I am looking for a way to prevent this from happening.

  • 写回答

2条回答 默认 最新

  • weixin_33709590 2013-02-06 01:46
    关注

    It shouldn't be taking you that long to process a voting request and you can just block off POST requests from the same client to the upvote URL directly on the server. A much better option would be just to use a login system, but, that must not be an option...

    评论

报告相同问题?

悬赏问题

  • ¥20 ML307A在使用AT命令连接EMQX平台的MQTT时被拒绝
  • ¥20 腾讯企业邮箱邮件可以恢复么
  • ¥15 有人知道怎么将自己的迁移策略布到edgecloudsim上使用吗?
  • ¥15 错误 LNK2001 无法解析的外部符号
  • ¥50 安装pyaudiokits失败
  • ¥15 计组这些题应该咋做呀
  • ¥60 更换迈创SOL6M4AE卡的时候,驱动要重新装才能使用,怎么解决?
  • ¥15 让node服务器有自动加载文件的功能
  • ¥15 jmeter脚本回放有的是对的有的是错的
  • ¥15 r语言蛋白组学相关问题