无需使用验证码即可阻止评论垃圾邮件 [英] Blocking comment spam without using captcha

查看:95
本文介绍了无需使用验证码即可阻止评论垃圾邮件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

哪些非验证码方法可以阻止我的评论中的垃圾邮件?

解决方案

以我的经验,当前最有效的方法是蜜罐输入字段,这些字段通过CSS对用户不可见(最好使用几种不同的方法,例如:可见性:隐藏,设置为0像素的大小以及绝对位置远远超出浏览器窗口的范围);如果它们仍然被占用,您可以认为这是垃圾邮件机器人.

此博客描述了一种我尝试过的相当复杂的方法(100%到目前为止取得了成功),但我怀疑通过跳过所有具有哈希字段名称的内容,而只需添加一些简单的蜜罐字段,就可以获得相同的结果.

What are some non-captcha methods for blocking spam on my comments?

解决方案

In my experience the currently most effective methods are honeypot input fields that are made invisible to users via CSS (best use several different methods, such as visibility:hidden, setting a size of 0 pixels, and absolute positioning far outside the browser window); if they're filled anyway you can assume it's a spambot.

This blog describes a rather complex method that I've tried out myself (with 100% success so far), but I suspect that you could get the same result by skipping all the stuff with hashed field names and just add some simple honeypot fields.

这篇关于无需使用验证码即可阻止评论垃圾邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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