werkbot/werkbot-spam-protection

Werkbot Spam Protection Fields

Installs: 1 033

Dependents: 0

Suggesters: 0

Security: 0

Stars: 2

Watchers: 2

Forks: 1

Open Issues: 0

Type:silverstripe-vendormodule

2.0.0 2024-04-19 12:43 UTC

This package is auto-updated.

Last update: 2024-11-13 14:11: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