The honeypot technique is a simple and effective way to protect your web forms from spam and automated attacks.
To use the this technique, you will have add a hidden field to your web form that is invisible to human users but visible to bots. This field is designed to attract bots to fill it out, while human users are unaware of its existence and leave it blank.
When a bot fills out the honeypot field, it triggers the spam filter.
This technique doesn't cause any inconvenience for your real users, as they are unaware of the hidden field.
To enable this option:
- In your web form, add a hidden field and give it a name. Use some common forms field name, and avoid words like
honeypotand so on, which might be identified by sophisticated bots. Make sure that the field is hidden using css, and not using
type="hidden". Also add
autocomplete="off"in order to make sure that the field is not being filled by the browser itself. E.g.
- In your form settings, click the Spam filter ⓵ menu
- Scroll down to Honeypot field section, and set the name of the hidden field that you have created . Don't forget to save
- That's it. Bots that fill this field will be identified and marked as spam