3

我在很多网站的所有表单上都使用了这种验证码方法,基本前提是我有一个被css隐藏的文本框,如果服务器端代码确定该框中有任何内容,那么表单没有完全的。

客户端:

<li id="li-cap"><label>Leave this field blank</label><input type="text" maxlength="30" id="cap" name="cap" /></li>

CSS:

#li-cap{display:none}

服务器端伪代码:

if(!nullOrEmpty(input#cap))
{
    return post back to form with error
}
else
{
    process form
}

这暂时忽略了任何客户端验证

我一直在使用这种形式的验证码(我相信它有一个名字,但不记得了,认为它以 p 开头)有一段时间了,我看到了很多不同类型的验证码:数学和,图像上的随机字母,问题。

我的版本不需要用户输入,而且我根本没有收到垃圾邮件表单。这实际上是一个好方法,还是我有点幸运?我应该使用更强的方法吗?

4

1 回答 1

2

This type of captcha is relatively strong for typical spambots, that fill all the fields. However, it is completely inefficient for site-based floodbots, and this is why it will not be used on high-audience websites.

于 2012-04-18T10:07:42.137 回答