Download the PHP package innoweb/silverstripe-spamprotection-honeypot without Composer
On this page you can find all versions of the php package innoweb/silverstripe-spamprotection-honeypot. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download innoweb/silverstripe-spamprotection-honeypot
More information about innoweb/silverstripe-spamprotection-honeypot
Files in innoweb/silverstripe-spamprotection-honeypot
Package silverstripe-spamprotection-honeypot
Short Description Provides invisible honeypot spam protection for Silverstripe CMS.
License BSD-3-Clause
Homepage https://github.com/xini/silverstripe-spamprotection-honeypot
Informations about the package silverstripe-spamprotection-honeypot
Silverstripe Honeypot SpamProtection Module
Overview
Provides invisible honeypot spam protection for Silverstripe CMS.
Creates form fields hidden from users that invalidate submission if the contained data has been tampered with. Also invalidates submissions that respond too quickly.
Requirements
- Silverstripe Framework 5
- Silverstripe SpamProtection 4.
Note: this version is compatible with Silverstripe 5. For Silverstripe 4, please see the 1 release line.
Installation
Run the following to add this module as a requirement and install it via composer.
Then run dev/build.
Usage
Create a configuration file spamprotection.yml
in app/_config
with the following configuration:
We also recommend changing the default field name from Captcha
to something less obvious:
Then enable spam protection on your form by calling Form::enableSpamProtection()
.
You can change the amount time that is checked to see if the response is made too quickly with the following configuration.
This example changes the time to 12 seconds. The default is set to 8 seconds.
You can also change the default text used in the value field, overriding the translation using your lang file (e.g. app/lang/en.yml
):
This defaults to 'Please leave this as is.'
.
Contributing
Please see contributing for details.
Credits
Thanks to studiobonito/silverstripe-spamprotection-honeypot and symbiote-library/silverstripe-spamprotection-honeypot for the inspirations.
License
BSD 3-Clause License, see License