2010-12-13 01:30:04 +01:00
|
|
|
# Math Spam Protection
|
|
|
|
|
|
|
|
## Maintainers
|
|
|
|
|
|
|
|
* Will Rossiter (Nickname: willr, wrossiter)
|
2012-07-11 10:13:44 +02:00
|
|
|
<will at fullscreen dot io>
|
2010-12-13 01:30:04 +01:00
|
|
|
|
|
|
|
## Introduction
|
|
|
|
|
2014-02-10 09:25:27 +01:00
|
|
|
This module provides a simple math protection mechanism for prevent spam on your
|
2015-01-04 01:12:48 +01:00
|
|
|
forms. It will ask the user to complete an equation such as "three plus seven".
|
|
|
|
|
|
|
|
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.
|
2010-12-13 01:30:04 +01:00
|
|
|
|
|
|
|
Includes an EditableMathSpamField to integrate with the UserForms module.
|
|
|
|
|
|
|
|
## Requirements
|
|
|
|
|
2014-02-10 09:25:27 +01:00
|
|
|
* SilverStripe 3.1
|
|
|
|
* Spam Protection
|
2012-07-11 10:13:44 +02:00
|
|
|
|
2014-02-10 09:25:27 +01:00
|
|
|
## Install Spam Protection Module
|
2010-12-13 01:30:04 +01:00
|
|
|
|
2014-02-10 09:25:27 +01:00
|
|
|
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.
|
2010-12-13 01:30:04 +01:00
|
|
|
|
2014-02-10 09:25:27 +01:00
|
|
|
If you're using composer..
|
|
|
|
|
|
|
|
```
|
|
|
|
composer require "silverstripe/spamprotection:dev-master"
|
|
|
|
composer require "silverstripe/mathspamprotection:dev-master"
|
|
|
|
```
|
|
|
|
|
|
|
|
Set the default spam protector in *mysite/_config/spamprotection.yml*
|
|
|
|
|
|
|
|
---
|
|
|
|
name: spamprotection
|
|
|
|
---
|
2018-04-19 17:06:16 +02:00
|
|
|
SilverStripe\SpamProtection\Extension\FormSpamProtectionExtension:
|
|
|
|
default_spam_protector: SilverStripe\SpamProtection\Maths\MathSpamProtector
|