Skip to content

Repository files navigation

SilverStripe Spam Module

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

Documentation

Generate documentation using Doctum:

./vendor/bin/doctum.php update doctum.config.php

View the api documentation:

start doctum_build/index.html

About

Spam Module using Honeypot and Timer fields

Topics

Resources

Contributing

Stars

1 star

Watchers

2 watching

Forks

Releases

Used by

Contributors

Languages