This module works by adding a normal text field which is visually hidden. The field is invalid when it's not empty. Bot will likely fill out the field, because they don't process css.
Install via composer.
composer require jbennecker/silverstripe-honeypotprotection
Set the default spam protector in src/_config/spamprotection.yml
--- name: spamprotection --- SilverStripe\SpamProtection\Extension\FormSpamProtectionExtension: default_spam_protector: jbennecker\HoneypotProtection\HoneypotProtector
In custom forms add the field like this
use jbennecker\HoneypotProtection\HoneypotProtectorField; .... $fields = new FieldList( .... HoneypotProtectorField::create('Phone') // Change title accordingly )
For userforms simply add a spamprotector-field.
Module rating system helping users find modules that are well supported. For more on how the rating system works visit Module standards
Score not correct? Let us know there is a problem