Releases: studiobonito/silverstripe-spamprotection-honeypot
Releases · studiobonito/silverstripe-spamprotection-honeypot
v1.1.1
v1.1.0
SpamProtection Honeypot Module
Added
- Included changelog.
- Included
.gitattributes
file. - Included
php
version>=5.3.0
as a dependency. - Included
scrutinizer/ocular
version~1.1
as a development dependency. - Updated license.
- Update Scrutinizer configuration.
- Update Travis configuration (include PHP 5.6, 7 and HHVM).
- Update PHPUnit configuration.
- Include contributing guide.
- Update readme.
- Included test case for failed validation.
Fixed
- Removed
composer.lock
file. - Updated
.gitignore
file. - Updated
composer.json
file. - Improved PSR-1 and PSR-2 conformance.
- Included safe mocking of translation function.
- Corrected
getValidator()
to returnMockInterface
.
v1.0.1
v1.0.0
SpamProtection Honeypot Module
Overview
Provide Honeypot spam protection for SilverStripe CMS.
Create a form field hidden from users that invalidates submission if it contains any data.
Also invalidate submissions that respond to quickly.
Requirements
- SilverStripe 3.1 or newer.
- SilverStripe SpamProtection 1.2 or newer.
Install
Via Composer
Run the following to add this module as a requirement and install it via composer.
$ composer require studiobonito/silverstripe-spamprotection-honeypot
Manually
Copy the 'silverstripe-spamprotection-honeypot' folder to the root of your SilverStripe installation.
Usage
Create a configuration file spamprotection.yml
in mysite/_config
with the following configuration.
---
name: spamprotection
---
FormSpamProtectionExtension:
default_spam_protector: '\StudioBonito\SilverStripe\SpamProtection\Honeypot\SpamProtector\HoneypotSpamProtector'
Then enable spam protection on your form by calling Form::enableSpamProtection()
.
public function ExampleForm()
{
$form = new ExampleForm($this, 'Example');
$form->enableSpamProtection();
return $form;
}