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
Requires
- php: ^8.1
- silverstripe/cms: ^5
- silverstripe/framework: ^5
- silverstripe/spamprotection: ^4
Requires (Dev)
- phpunit/phpunit: ^9.5
README
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.