什么是好的隐形验证码? [英] What is a good invisible captcha?

查看:70
本文介绍了什么是好的隐形验证码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

什么是好的隐形验证码?我的网站需要JavaScript,因此任何需要的东西都可以。

What is a good invisible captcha? My site requires JavaScript so anything which requires that is fine.

推荐答案

添加新的输入字段,并将其标记为请留空 ,使用CSS将其隐藏,如果该字段已填写,则忽略该帖子。

Add a new input field, label it "Please leave blank", hide it using CSS, and ignore the post if that field is filled in. Something like this:

<style type='text/css'>
#other_email_label, #other_email {
    display: none;
}
</style>
...
<form action='mail'>
<label id='other_email_label' for='other_email'>Please leave blank:</label>
<input type='text' name='other_email' id='other_email'>
...
</form>

所以人类不会看到该字段(除非他们关闭了CSS,在这种情况下他们会看到该标签并将其留为空白),但垃圾邮件机器人会填充它。任何填充该字段的帖子都必须来自垃圾邮件机器人。

So a human being won't see that field (unless they have CSS turned off, in which case they'll see the label and leave it blank) but a spam robot will fill it in. Any post with that field populated must be from a spam robot.

这篇关于什么是好的隐形验证码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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