werkbot/werkbot-spam-protection

Werkbot Spam Protection Fields

Installs: 547

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 2

Forks: 1

Open Issues: 0

Type:silverstripe-vendormodule

1.0.4 2022-08-18 18:06 UTC

This package is auto-updated.

Last update: 2024-02-29 19:12:56 UTC


README

Latest Stable Version Total Downloads Latest Unstable Version License PHP Version Require

A silverstripe Spam Module using Honeypot and Timer fields to mark bot submissions

Installation

composer require werkbot/werkbot-spam-protection

Requirements

Setup

To setup as the default spam protection add the following to your mysite/_config/spamprotection.yml file

---
name: mycustomspamprotection
---
SilverStripe\SpamProtection\Extension\FormSpamProtectionExtension:
  default_spam_protector: Werkbot\SpamProtection\HoneypotProtector

You can optionally set the time for the Timer Field using the following entry in the same file under the default_spam_protector line where x is the number of seconds

time_not_bot: x

If you plan to alter the sass files you can copy this file and the components folder to your sass directory and update accordingly.

Usage