https://github.com/brandcom/silverstripe-honeypotprotection
spam protection implementation for silverstripe/silverstripe-spamprotection
https://github.com/brandcom/silverstripe-honeypotprotection
silverstripe silverstripe-module spam-protection
Last synced: 5 months ago
JSON representation
spam protection implementation for silverstripe/silverstripe-spamprotection
- Host: GitHub
- URL: https://github.com/brandcom/silverstripe-honeypotprotection
- Owner: brandcom
- License: mit
- Created: 2020-01-02T11:52:24.000Z (almost 6 years ago)
- Default Branch: ss5
- Last Pushed: 2023-05-08T11:02:29.000Z (over 2 years ago)
- Last Synced: 2024-04-23T22:55:15.413Z (over 1 year ago)
- Topics: silverstripe, silverstripe-module, spam-protection
- Language: PHP
- Homepage:
- Size: 9.77 KB
- Stars: 1
- Watchers: 0
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# silverstripe-honeypotprotection
This module works by adding a normal text field which is visually hidden. The field is invalid when it's not empty. Bot will likely fill out the field, because they don't process css.
## Requirements
* SilverStripe 5.x (for SilverStripe 4.x use 4.x Branch)
* [SpamProtection Module](https://github.com/silverstripe/silverstripe-spamprotection)## Install
Install via composer.
`composer require jbennecker/silverstripe-honeypotprotection`
Set the default spam protector in a .yml config file of your choice.
```yaml
SilverStripe\SpamProtection\Extension\FormSpamProtectionExtension:
default_spam_protector: jbennecker\HoneypotProtection\HoneypotProtector
```## Usage
In custom forms add the field like this
use jbennecker\HoneypotProtection\HoneypotProtectorField;
....
$fields = new FieldList(
....
HoneypotProtectorField::create('Phone') // Change title accordingly
)For userforms simply add a spamprotector-field.