垃圾邮件预防/减少 - 联系表单? [英] Spam Prevention/Reduction - Contact Form?

查看:105
本文介绍了垃圾邮件预防/减少 - 联系表单?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

I want to add a simple Contact form to my web site so that customers can contact me easily.

我想在我的网站上添加一个简单的联系表单,以便客户轻松与我联系。 ;
NAME
< input type ='text'name ='name'/>
EMAIL
< input type ='text'name ='email'/>
MESSAGE
< textarea name ='message'/>
< input type ='submit'/>
< / form>

<form> NAME <input type='text' name='name' /> EMAIL <input type='text' name='email' /> MESSAGE <textarea name='message' /> <input type='submit' /> </form>

这张表格只会给我发送电子邮件给我。

This form would simply email me the customers message.

但是,我也想减少(不是,我不是说消除,但至少减少),垃圾邮件。

But, I also want to reduce (not, I'm not saying eliminate but at least reduce), SPAM.

我看了使用验证码,但最终我不想阻止客户填写额外的信息。

任何关于简单垃圾邮件的想法预防/减少的方法我可以用于我的联系表单。

Any ideas of a good simple spam prevention/reduction method I could use for my Contact form.

推荐答案

一个非常简单的技巧,我一直在使用一个令人惊讶的好成功率是这样的:使用 style =display:none提供一个隐藏于人类用户的文本字段,但带有一个诱人的名字,如 email 。大多数机器人将填补这个领域的一些东西,但人类无法看到它,所以他们不会。在服务器上,确保该字段为空,否则将提交视为垃圾邮件。

A very simple trick I've been using with a surprisingly good success rate is this: Provide a text field that is hidden from human users with style="display: none", but with an enticing name like email. Most bots will fill in something in this field, but humans can't see it so they wont. At the server, just make sure the field is empty, else treat the submission as spam.

这篇关于垃圾邮件预防/减少 - 联系表单?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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