Math Spam Protection
This module provides a simple math protection mechanism for prevent spam on your
forms. It will ask the user to complete an equation such as "three plus seven"., (*1)
Note that while the challenge is written in natural language to make it a bit harder to parse for bots,
its by no means a comprehensive solution to avoiding spam., (*2)
Includes an EditableMathSpamField to integrate with the UserForms module., (*3)
Requirements
- SilverStripe 4
- Spam Protection
Install Spam Protection Module
The Spam Protection Module (http://silverstripe.org/spam-protection-module)
provides the basic interface for managing the spam protection so first you need
to install that module., (*4)
If you're using composer.., (*5)
composer require "silverstripe/spamprotection:dev-master"
composer require "silverstripe/mathspamprotection:dev-master"
Set the default spam protector in mysite/_config/spamprotection.yml, (*6)
---
name: myspamprotection
---
SilverStripe\SpamProtection\Extension\FormSpamProtectionExtension:
default_spam_protector: SilverStripe\MathSpamProtection\MathSpamProtector