Honeypot recaptcha. A nice and simple recaptcha alternative

| Tags: advice, web development

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

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


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



.thepot display:none;


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

//Don't send the form


//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.
what is the internet of things & is it worth exploring? - desktop image
internet of things eguide - tablet image
the internet of things market opportunity - mobile image

Contact Us
Get in touch.

Find us

Scorchsoft Ltd
306B, The Big Peg,
120 Vyse Street,
Birmingham, B18 6NF

Get directions