寻找比验证码更容易实施的反垃圾邮件解决方案
我正在寻找一个简单的反垃圾邮件表单提交解决方案,而不是验证码。我曾尝试在我的网站中实施验证码以实现反垃圾邮件目的,但集成到该网站中太困难了。我没有收到很多垃圾邮件攻击,但我希望针对收到的随机垃圾邮件采取一些措施。有谁知道他们认为有用的东西吗?
I'm looking for a simple anti spam form submission solution, other than Captcha. I've tried implementing Captcha into my website for anti-spam purposes, but it's been too difficult to integrate into the site. I don't get many spam attacks but I'd like to have something in place for the random spam that I get. Does anyone know of something they think would work?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以向表单添加额外的文本字段并使用 css 隐藏它。人类用户看不到该字段,因此它应该始终为空。垃圾邮件机器人通常会填写所有表单字段,但不知道这一字段是隐藏的。如果您收到此字段中的任何内容,请拒绝表单提交。
you can add an additional textfield to your form and hide it with css. human users don't see the field, so it should always be empty. spambots usually fill out all form fields and don't know that this one is hidden. if you receive any content in this field, reject the form submission.
提出诸如“3 加 6 是多少?”之类的内容。并为用户提供一个表格来输入答案。任何人都会明白这一点,包括看不到验证码的盲人,但机器人不会。实际上,您甚至不需要改变数字。
Put up something like "What is 3 plus 6?" and give the user a form to type the answer. Any human will get that, including blind ones who can't see a captcha, but no bot will. You don't even need to vary the numbers, really.