如何防止机器人自动提交表单?
我正在运行 ColdFusion MX,因此无法使用内置的 在提交表单之前,我的应用程序中的 cfimage Captcha 功能。
但问题是,如果没有验证码,机器人就会提交表单。
防止自动提交的最佳方法是什么?
I am running ColdFusion MX, so I don't have the possibility of using the built-in cfimage Captcha functionality in my application, before form submitting.
But the problem is without captcha the bots submit the forms.
What will be best way to prevent automatic submitting?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
验证码不一定是图像!
尝试以下解决方案之一:
所有这些解决方案都无需第三方代码或 API 调用即可完成。
话虽这么说,reCAPTCHA 非常好,并且很容易集成到几乎任何环境。
Captchas don't have to be images!
Try one of the following solutions:
All of these solutions can be done without third party code or API calls.
That being said, reCAPTCHA is pretty good and easy to integrate into almost any environment.
看一下 cfformprotect - 它适用于 CFMX 6 和所有更高版本的引擎。
它的目标是完全可访问 - 对大多数用户来说是不可见的 - 通过各种方法来阻止机器人和垃圾邮件发送者。
此外,您可能还想查看 reCaptcha 的 CF 包装器,它与 CFMX 7 兼容。
Take a look at cfformprotect - it will work with CFMX 6 and all later engines.
It aims to be fully accessible - and invisible to most users - with an assortment of methods to stop bots and spammers.
Also you might want to look at a CF wrapper for reCaptcha, which is compatible with CFMX 7.
我与另一种技术一起使用的技术是使用图像按钮。您的 POST 处理程序获取单击图像的 x,y 坐标。我发现机器人(只是生成帖子请求)正在传递 0,0,通过将这些请求放在地板上,我将垃圾邮件帖子减少到少于真实帖子。抱歉,我不知道如何在 CF 中做到这一点,但我希望该技术对您有用。
A technique I used with a different technology was to use image buttons. Your POST handler gets the x,y co-ordinates where the images were clicked. I found the bots (which are just generating post requests) were passing 0,0 and by dropping those requests on the floor I brought the spam posts down to less than the real ones. Sorry that I don't know how to do that in CF but I hope the technique is useful to you.
无论您使用哪种解决方案,在处理之前在服务器端进行数据验证始终是一个好主意。
这篇文章可能会有所帮助:http://www.bennadel.com/blog/405-Fully-Accessible-Spam-Form-Submission-Blocking-Using-ColdFusion-And-X-HTML-Version-III- .htm
Its always a good idea to do data validation on the server side before processing no matter which solution you use.
This post may help: http://www.bennadel.com/blog/405-Fully-Accessible-Spam-Form-Submission-Blocking-Using-ColdFusion-And-X-HTML-Version-III-.htm
使用计算方法怎么样?就像 8 + 5 = ?
或者
使用 ColdFusion.Ajax.submitForm 怎么样?
How about using calculation method? Just like 8 + 5 = ?
OR
how about using ColdFusion.Ajax.submitForm?