表单中的反垃圾邮件字段 [英] anti spam field in form
问题描述
我正在使用vtiger并在网站联系页面上收到大量垃圾邮件,我正在使用此代码
i am using vtiger and recieveing alot of spam on the website contact page i am using this code
<form name="contact" action="REMOVED" method="post" accept-charset="utf-8">
<input type="hidden" name="publicid" value="REMOVED"></input>
<input type="hidden" name="name" value="contact"></input>
<label>First Name</label>
<input type="text" value="" name="firstname" required="true"></input>
<label>Phone</label>
<input type="text" value="" name="phone" required="true"></input>
<label>Last Name</label>
<input type="text" value="" name="lastname" required="true"></input>
<label>Email</label>
<input type="text" value="" name="email" required="true"></input>
<label><span>*</span>Street</label>
<input type="text" value="" name="lane" ></input>
<label><span>*</span>Postal Code</label>
<input type="text" value="" name="code" ></input>
<label><span>*</span>City</label>
<input type="text" value="" name="city" ></input>
<label>Country</label>
<input type="text" value="" name="country" ></input>
<label><span>*</span>County</label>
<input type="text" value="" name="state" ></input>
<label for="comments"><span>*</span>Description</label>d
<textarea name="description" cols="40" rows="3" name="description" id="description"></textarea>
我正在提交的问题是到不在网站上的另一个URL的,我尝试过的每一种反垃圾邮件方法(12 + 1 =)仍然会发送表格,无论答案如何
the isue im having is the submit is to another URL thats not on the site and every anti spam method i have tried (12+1 =) still sends the form no matter the answer
我已经删除了指向网站的链接
i have deleted the links to the sites
任何对此的帮助都会很棒
Any help on this would be great
推荐答案
向您不使用的表单添加额外的字段.用CSS隐藏它.
Add an extra field to the form that you do not use. Hide it with css.
访问该页面的垃圾邮件机器人将填充所有字段,即使它们没有显示.
Spam bots visiting the page will fill all fields, even if they are not shown.
如果隐藏字段中有内容,则整个表单都是垃圾邮件,您可以丢弃数据.
If there's something in the hidden field, the whole form is spam, and you can discard the data.
这篇关于表单中的反垃圾邮件字段的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!