Augie (from intellectualcapitalreport.com ) presented a spam prevention method idea which we’ve been talking about under a previous post this past week: HowTo Eliminate Wordpress Trackback Comment And Pingback Spam . Augie (从intellectualcapitalreport.com )提出了防止垃圾邮件的方法想法,我们已经谈论根据以前的职位过去的这个星期: 如何消除WordPress的评论和引用Pingback垃圾邮件。 The basic idea is to provide an extra input field which is hidden to a user when viewed normally from the browser.基本的思路是提供一个额外的输入栏位这是隐藏到用户观看时,通常从浏览器。 This means if you check your form data when a submission is being processed, you can determine if the field is still empty.这就意味着,如果您检查表单数据时,提交正在处理中,您可以决定是否领域仍是空白。 If it is filled out, then a bot must have auto filled the field.如果是填写,然后机器人必须具备自动填补了外地。

Spam Field Details垃圾场的细节

The naming convention used on a hidden field should be named “email” or “url” to trick the bot.在命名惯例上使用隐藏字段应该命名为“电子邮件”或“网址”欺骗僵尸。 Your real email field will then of course need to be named something else.您的真实的电子邮件外地然后将当然需要命名为别的东西。 A small price to pay for less house cleaning.一个很小的代价不到房子的清洁。

Another key to all of this is to wrap your trap (haha) in a DIV so that the a bot cant tell that the field is hidden.另一个关键,所有这一切都结束的陷阱(哈哈)在一个除法,使以BOT不能告诉外地是隐藏的。 Marking it with type=”hidden” on the input tag itself is a bit of a giveaway.可塑与类型= “隐藏”的投入标记本身就是一个有点赠品。 Assigning an id or class to the div and specifying display:none; would cause the bot a lot of extra work which most probably aren’t programmed for.分配一个ID或类别的专区,并指明显示:无;将导致僵尸了许多额外的工作,最有可能不是编程。 You could also use a built in id or class directly on the div to specify it as a hidden field.您也可以使用内置的ID或类别直接在专区指定它作为一个隐藏的领域。

Hidden Input Field Code隐藏输入栏位代码

Here is an example of what your code would look like:下面是一个例子,您的代码将如下所示:

  1. CSS code would look like this:
  2. #email {
  3. display: none
  4. }
  5. OR if you're doing it by the div:
  6. .specialfield {
  7. display: none
  8. }
  9. Your form would look something like this:
  10. <form method="post" action="yourformprocessor.php">
  11. <div class="specialfield"><input id="email" type="text"></div>
  12. <input id="realemail" type="text">
  13. </form>

Using Hidden Fields使用隐藏字段

It isn’t too much of a stretch to add this to a custom solution or implement it into a Wordpress comments or form plugins because id’s and classes are assigned to input fields by default.这不是扯得太远了以新增此项目自订的解决办法或实施到WordPress的意见或形式的插件,因为识别码和班级被分配到输入栏位的预设值。 If you’re not already using a form plugin check out:如果您尚未使用的一种形式插件检查:

cforms II or Contact Form 7 (my preference). cforms II或 联系表7 (我偏好) 。

If I get enough requests I’ll write a post which explains how to implement this into Wordpress comments in a similar manner in which I setup the Enhanced Numbered Equation CAPTCHA .如果我得到足够的要求我会撰写文章解释如何执行这一到WordPress的评论也以相同方式在我安装增强编号方程CAPTCHA

The More Spam Defense The Better在更多的垃圾邮件防御更好

I don’t have a lot of experience in using spam bots, but this is a promising way to enhance our line of defense against spam.我不拥有丰富的经验在使用防垃圾邮件程序,但是这是一种很有前途的方式加强我们的防线垃圾邮件。 More importantly, its not intrusive on a users browsing experience.更重要的是,它没有侵入了用户的浏览体验。 Unlike a CPATCHA, it requires a valid visitor to do nothing!不同CPATCHA ,它需要一个有效的访客做什么!

If you have any thoughts or comments, about this spam technique, leave them below.如果您有任何想法或意见,这个垃圾邮件技术,让他们下文。



Leave A Comment:发表评论:

Comments RSS Feed 评论RSS馈送

8 3 = 8 3 =

Custom Theme by Rob Malon | Content & Design © 2008 - Rob Malon [dot] Com. 自订主题罗布丙二|内容与设计© 2008 -罗布丙二[斑点]通信。 "));
"));