Home  >  Article  >  Backend Development  >  提交留言到邮箱 怎么防止网友重复提交 恶意刷留言

提交留言到邮箱 怎么防止网友重复提交 恶意刷留言

WBOY
WBOYOriginal
2016-06-23 13:34:031197browse

目前已经有验证码校验功能 后台是dedecms  经常收到网友的恶意提交 刷了一大堆邮箱留言  怎么防止网友重复提交 恶意刷留言


回复讨论(解决方案)

限制ip一定时间内提交次数

限制ip一定时间内提交次数



这是一个办法,但是别人有时候会通过代理来随机ip,你也可以加大你的验证码识别难度

限制ip一定时间内提交次数

我的在线留言是提交到邮箱的 没有连接数据库 怎么限制IP 求指导 谢谢!


限制ip一定时间内提交次数

我的在线留言是提交到邮箱的 没有连接数据库 怎么限制IP 求指导 谢谢!

在每次发送邮件前,加上判断,比如你建一个数据库表,每次提交记录一下ip,并判断提交次数。

建一个数据库表,每次提交记录一下ip,并判断提交次数。在每次发送邮件前,加上判断并且限制ip一定时间内提交次数。

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn