Apio systems – Honeypot for Contact Form 7

外掛說明

I like to use Contact Form 7 on most of my WordPress sites. It’s a powerful form manager that suits all my needs. I don’t like to use external calls to protect the forms from spam submissions though (like reCaptcha or hCaptcha) and don’t want to present a manual captcha to a user (math or other puzzle). Since I couldn’t find a really basic honeypot script that works on most entries, I created one here. Hopefully it’s useful to someone else also.

Setup

  • Install the plugin using the regular plugin setup routine or upload the entire apiosys-honeypot-cf7 folder to the /wp-content/plugins/ directory.
  • Activate the plugin through the “Plugins” menu in WordPress, you MUST have Contact Form 7 AND Flamingo installed and enabled.
  • Add the following shortcodes to your Contact Form 7 forms:

[honeypot] – Adds the hidden honeypot field
[timestamp] – Adds time-based validation

  • Complete the rest of the options which you can find in Admin > Contact > Honeypot. A generally good working set of values is enabled by default there.

What tests are used?

  • A Honeypot Field
  • A Checkbox Trap
  • Time-Based Validation
  • Email domain Check
  • Basic Content Analysis

Does it really work?

It has been tested on several high-traffic WP sites. I see a return of ~ 1 ‰ (i.e. 1 in a thousand) of spam going through. That usually corresponds to humans paid to fill forms or sophisticated bots. Please feel free to contribute to make it even better. You can contribute directly here.

螢幕擷圖

  • Spam caught when Honeypot field was filled.
  • Spam caught when the form was submitted too quickly.
  • Spam caught when too many URLs are present in the message fields.
  • Spam caught when certain keywords are detected.

安裝方式

  • Install the plugin using the regular plugin setup routine or upload the entire apiosys-honeypot-cf7 folder to the /wp-content/plugins/ directory.
  • Activate the plugin through the “Plugins” menu in WordPress, you MUST have Contact Form 7 AND Flamingo installed and enabled.
  • Add the following shortcodes to your Contact Form 7 forms:

[honeypot] – Adds the hidden honeypot field
[timestamp] – Adds time-based validation

  • Complete the rest of the options which you can find in Admin > Contact > Honeypot. A generally good working set of values is enabled by default there.

使用者評論

這個外掛目前沒有任何使用者評論。

參與者及開發者

以下人員參與了開源軟體〈Apio systems – Honeypot for Contact Form 7〉的開發相關工作。

參與者

變更記錄

0.9.4 – 2025-12-04

  • FEAT: Added checkbox trap.
  • FEAT: Improved field hiding.
  • FEAT: Email domain TLD check.
  • FEAT: Updated default spam keywords list.
  • FEAT: Separate list with spam phrases.
  • FEAT: Obfuscated timestamp.

0.9.3 – 2025-11-16

  • FIX: CSS resource version.

0.9.2 – 2025-11-14

  • First production release.