Go to file
2021-10-07 06:49:28 +13:00
_config Cleanup to work with latest master spam, fix validation 2014-02-10 21:25:27 +13:00
lang Update ES and FR lang files 2018-06-28 15:28:35 +02:00
src Actually enforce strict numeric comparison for answer 2021-10-06 16:09:42 +02:00
.editorconfig Added standard editor config 2015-11-21 19:52:29 +13:00
.gitattributes Added standard git attributes 2015-11-21 20:10:52 +13:00
.scrutinizer.yml Added standard Scrutinizer config 2015-11-21 19:35:45 +13:00
.travis.yml Update travis, fix #42, #32 2021-04-01 08:57:39 +13:00
.upgrade.yml Add upgrade.yml 2021-04-01 08:59:18 +13:00
code-of-conduct.md Added standard code of conduct 2015-11-21 20:20:07 +13:00
composer.json Update travis, fix #42, #32 2021-04-01 08:57:39 +13:00
license.md Format 2021-04-01 08:53:28 +13:00
README.md Correct version 2021-10-07 06:49:28 +13:00

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".

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.

Includes an EditableMathSpamField to integrate with the UserForms module.

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.

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: myspamprotection
---
SilverStripe\SpamProtection\Extension\FormSpamProtectionExtension:
  default_spam_protector: SilverStripe\MathSpamProtection\MathSpamProtector