Honeypot recaptcha. A nice and simple recaptcha alternative

Posted on Jun 23, 2011  | Tags: hints, tips, advice

Honeypot spam prevention

Catching and blocking spam emails is, has and probably always will be one of the biggest annoyances on the internet. One fantastic solution to the problem is using a recaptcha field. This method works well... downsides? You have to have a cumbersom recaptcha spam captcha field on all of your forms. This isn't always an issue however it often clashes with design, especially if you are trying to put a quick email form into a small space.

Try implementing a honeypot captcha to catch that pesky spam!

A honeypot captcha is simple. Put a field onto your form that humans won't fill out. Most spam bots search for forms, fill out every field and submit it. If the honeypot captcha field is filled out then you know that it is a spam submission.

Rather than defining the field as:

How not to implement a honeypot captcha

<form action="">

...
<p>
<input type="hidden" name="honeypot" value="" />
</p>
...

</form>

use an actual text field like this:

correct way to implement a honeypot captcha

The form

<form action="">

...
<p class="thepot">
<input type="text" name="honeypot" value="" alt="if you fill this field out then your email will not be sent"/>
</p>
...

</form>

The CSS

.thepot display:none;

The PHP

if(isset($_REQUEST'honeypot') && $_REQUEST'honeypot' && $_REQUESThoneypot' != '')

//Don't send the form

else

//Send the form

 

The honey-pot pros

  • Simple to implement.
  • It works against most spam senders.
  • It means you can keep control your website aesthetics.

The honey-pot cons

  • Easy to bypass if the spammer knows you are using this technique.
  • Your website isn't helping to digitize books.
  • Accessibility. Someone with a screen reader will see the field and may fill it out. An alt tag has been added to try and prevent this.

Free Mobile Responsive eGuide

  Download  

wpd_title
  • Key information to support your mobile approach.
  • Information about what your customers think.
  • Up-to-date mobile market research.
  • Guidance to help you to decide between a mobile app or web app.
We may send you other resources from time to time. Don't worry, we won't send spam and you can unsubscribe at any time.

wpd_title

Thank you!

Your "Free Mobile Responsive eGuide" should begin transferring in a few seconds. We have also sent you an email link to it for later.

This download should start automatically, however if this doesn't happen right away then please Click Here to begin the download manually



Who are Scorchsoft?

Watch out video

Contact Us

Get in touch.

  • Telephone 0121 4690009
  • Email

Why not come & Visit Us?

Our offices are located at: Scorchsoft Ltd, 306B, The Big Peg, 120 Vyse Street, Birmingham, B18 6NF

Loading...