suilven/silverstripe-common-forms-spam-protection

Provide a one stop shop for protecting common SilverStripe forms with spam protection.

1.0.0 2019-05-31 20:19 UTC

This package is auto-updated.

Last update: 2024-04-29 04:07:14 UTC


README

This currently enables spam protection for the following 2 modules as a one shot solution.

  • silverstripe/comments - Add a new comment, reply to a comment
  • symbiote/silverstripe-memberprofiles - Member registration

Contents

Installation

Module

composer require suilven/silverstripe-common-forms-spam-protection

Enable Default Spam Protection

Add a file, e.g. app/_config/spamprotection.yml, and add likes of the following:

---
name: mysitespamprotection
---
SilverStripe\SpamProtection\Extension\FormSpamProtectionExtension:
  default_spam_protector: '\Symbiote\SilverStripe\SpamProtection\Honeypot\SpamProtector\HoneypotSpamProtector'


Change the spam protector to your preference.