Skip to content
ExpressionEngine 2.0 Hon-ee Pot Captcha to work with the Freeform module and comment form
Find file
Pull request Compare This branch is 14 commits behind davist11:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
rss
third_party/honeepot
README.textile

README.textile

Hon-ee Pot Captcha

I wanted to try to use the honey pot captcha technique to combat spam on my site. This technique includes a field on each form, hides it off the page with CSS and then validates on the back end to make sure it’s not filled in.

This addon validates Freeform, Safecracker, Zoo Visitor Registration, and EE comment forms.

Requirements & Installation

Hon-ee Pot Captcha is built to run on EE 2.0. To install:

  • Copy honeepot into your /system/expressionengine/third_party/ directory.
  • Go to Add-ons → Extensions and “Enable extension.”
  • You can customize the field name for the honey pot field and the message a user receives if the field is filled in by going to the extension settings.

Freeform Forms

In your form, add the honey pot field. Make sure the name of the form field matches the name in the Hon-ee Pot Captcha settings.

<li class="screen-reader">
  <label for="honeepot">Don't put anything here</label>
  <input type="text" name="honeepot" id="honeepot" />
</li>

In my CSS, I have a class to move things off of the page:

.screen-reader {
  display: block !important;
  left: -9999px !important;
  position: absolute !important;
}

Comment forms

Follow the same steps as the Freeform forms, except you do not have to create the field in Freeform.

Safecracker & Zoo Visitor Registration Forms

Doesn’t show error when using inline validation, but still protects the entry from being submitted.

Something went wrong with that request. Please try again.