Honeypot spam protection for SilverStripe forms.
Quickly add Honeypot spam protection for SilverStripe forms.
Run the following to add this module as a requirement and install it via composer.
#!bash
composer require "webfox/silverstripe-formprotection-honeypot:dev-master"
Include
#!php
use Webfox\SilverStripe\FormProtection\Honeypot\FormField\HoneypotField;
where the form is being created then attach the honey pot field to the form. For example:
#!php
$fields = new FieldList(
TextField::create('Name'),
EmailField::create('Email'),
HoneypotField::create('Protection')
);
or
#!php
$fields = new FieldList(
new TextField('Name'),
new EmailField('Email'),
new HoneypotField('Protection')
);
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