Add a Honeypot to Contact Form 7 to Prevent Spam

If you’re a fan of the popular Contact Form 7 plugin but don’t like using ugly CAPTCHAs, you may want to consider adding the new Honeypot for Contact Form 7 plugin. It introduces an additional field in the form that, when filled out. will cause the form not to validate.

The idea of a Honeypot is that it provides an irresistable trap for the bots. Bots are stupid and they will attempt to fill in all of the form fields with their junk. The Honeypot for Contact Form 7 plugin catches them red-handed.

Download the plugin for free from the WordPress repository. The next step is to choose “Honeypot” from the Generate Tag dropdown within your contact form. Change the Honeypot ID and insert the generated tag anywhere in your form. Click save and you’re set!

Comments (6)

  1. This is just what I was looking for after a week of ridiculous spam from my Contact Form 7 forms, which I refuse to captcha and didn’t want to create gmail filters for and risk losing real messages. Thanks!

  2. Contact form 7 can use Akismet THE anti spam plugin. This way Akismet filters comment spam and contact form spam. This is a very clean solution. No spam and no need for other ugly solutions that bother your visitors with captha’s or extra fields that can confuse them.

  3. @Sarah. That makes sense. But, the people behind spambots can easily adapt there scripts to avoid these hidden honeypot fields. I think Aksimet is by far the better solution, it’s much harder to trick.