Php 表单中的反垃圾邮件字段

Php 表单中的反垃圾邮件字段,php,forms,Php,Forms,我正在使用vtiger,在网站联系人页面上收到大量垃圾邮件。我正在使用此代码 <form name="contact" action="REMOVED" method="post" accept-charset="utf-8"> <input type="hidden" name="publicid" value="REMOVED"></input> <input type="hidden" name="name" va

我正在使用vtiger,在网站联系人页面上收到大量垃圾邮件。我正在使用此代码

        <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>

名字
电话
姓
电子邮件
*街头
*邮政编码
*城市
国家
*郡
*描述

我所拥有的isue是提交到另一个不在网站上的URL,并且我尝试过的每个反垃圾邮件方法(12+1=)仍然发送表单,不管答案如何

我已经删除了这些网站的链接


这方面的任何帮助都将非常有用

在表单中添加一个您不使用的额外字段。用css隐藏它


访问页面的垃圾邮件机器人将填充所有字段,即使这些字段未显示


如果隐藏字段中有内容,则整个表单都是垃圾邮件,您可以丢弃数据。

在表单中添加一个不使用的额外字段。用css隐藏它


访问页面的垃圾邮件机器人将填充所有字段,即使这些字段未显示


如果隐藏字段中有内容,则整个表单都是垃圾邮件,您可以丢弃数据。

我建议您使用其他反垃圾邮件方法-令牌/私钥

在HTML格式中,您可以放置以下内容:

<form action="..." method="post">
<?php
$publicKey = rand()%9;
$privateKey = 0.9;
$token = sha1( $publicKey * $privateKey + $privateKey );    
?>
<input type="hidden" name="publicKey" value="<?php echo $publicKey; ?>" />
<input type="hidden" name="token" value="<?php echo $token; ?>" />
</form>

记住!
始终验证并清理所有输入数据!:)

我建议您使用其他反垃圾邮件方法-使用令牌/私钥

在HTML格式中,您可以放置以下内容:

<form action="..." method="post">
<?php
$publicKey = rand()%9;
$privateKey = 0.9;
$token = sha1( $publicKey * $privateKey + $privateKey );    
?>
<input type="hidden" name="publicKey" value="<?php echo $publicKey; ?>" />
<input type="hidden" name="token" value="<?php echo $token; ?>" />
</form>

记住!
始终验证并清理所有输入数据!:)

一种常见的反垃圾邮件技术是使用。这是你在大多数网站上看到的随机字母/数字图形。还有,提交按钮在哪里?如果12+1,您需要取消单击或发布=13.SHow表单毫无意义-您需要显示实际处理反垃圾邮件措施的php代码。e、 g.不要给我们看你的坏电视放进来的盒子——我们需要看电视本身。一种常见的反垃圾邮件技术是使用。这是你在大多数网站上看到的随机字母/数字图形。还有,提交按钮在哪里?如果12+1,您需要取消单击或发布=13.SHow表单毫无意义-您需要显示实际处理反垃圾邮件措施的php代码。e、 g.不要向我们展示你的坏电视进入的盒子——我们需要看电视本身。这比广泛使用(和广泛针对性)的解决方案(尤其是recaptcha)对我更有效。“访问页面的垃圾邮件机器人将填充所有字段,即使它们没有显示”这在我的测试中不起作用。蜜罐田经常被跳过。你有没有把它命名为“蜜罐田”我已经使用了这种技术,可以肯定它的工作!这对我来说比一个广泛使用(并且目标广泛)的解决方案(尤其是recaptcha)要好得多。“访问页面的垃圾邮件机器人将填充所有字段,即使它们没有显示出来。”这在我的测试中不起作用。蜜罐田经常被跳过。你有没有把它命名为“蜜罐田”我已经使用了这种技术,可以肯定它的工作!