Skip to content

spam protection implementation for silverstripe/silverstripe-spamprotection

License

Notifications You must be signed in to change notification settings

brandcom/silverstripe-honeypotprotection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

silverstripe-honeypotprotection

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.

Requirements

Install

Install via composer.

composer require jbennecker/silverstripe-honeypotprotection

Set the default spam protector in a .yml config file of your choice.

SilverStripe\SpamProtection\Extension\FormSpamProtectionExtension:
  default_spam_protector: jbennecker\HoneypotProtection\HoneypotProtector

Usage

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.

About

spam protection implementation for silverstripe/silverstripe-spamprotection

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published