Quick and easy Honeypot anti-spam for Breezing Forms

There's easier ways to catch spam There's easier ways to catch spam

If you hate using Captcha on your forms as much as I do then try the Honeypot technique. It works wonders and is invisible to real people. This is how to set it up using Breezing Forms. And it only takes about 3 minutes.

Step 1

Add a Text element to your form using the following properties.

breezingforms honeypot1

Step 2

Under the Advanced tab ckeck the Turn off option.

breezingforms honeypot2

Save the element properties and then save your form.

Step 3

With the form name selected in the left panel click the Advanced tab and then the More options link. This will open a modal window. Click Submit Pieces and in the Begin Submit textbox add a custom snippet.

$this->execPieceByName('ff_InitLib');
if(ff_getSubmit('human') != "") {
die();
}

Save and you're done.

How does a Honeypot work?

It's very simple. Spambots see inputs on a form, fill them with their garbage and submit the form. By adding an input to a form and hiding it in the browser humans will never see it or fill it in. So we simply check if the input contains anything. If so, we quietly kill the process and say Adios, Spammer scum.

Give it a go and let us know in the comments how well it worked for you.

john-pitchers-avatar smAbout John Pitchers

John Pitchers is co-founder and lead developer at Joomstore where his primary role is the design and development of Joomla websites. He is also the developer of the FocalPoint maps extension for Joomla. John has been building CMS based web sites since 2004, originally working with Mambo before it forked into Joomla. When not writing PHP, Javascript or CSS you'll find John carving up the hills around Baldivis on his longboard (long before Walter Mitty made it famous).

Find out more about John on his About.me page and . Follow John on Twitter.

These posts may interest you...

Leave a comment