Simple, yet good spam protection module for Silverstripe.
Provides a hidden FormField which allows form to validate for non-bot submissions by checking if the value in that field is correct.
- Elvinas Liutkevičius <elvinas (at) unisolutions (dot) eu>
- SilverStripe 3
- Copy the
uniprotectdirectory into your main SilverStripe webroot
- Run ?flush=1
If you want to use UniProtect field by itself, you can simply just include it as a field in your form.
$uniprotectField = new UniProtectField('MyUniProtect');
This requires the
SpamProtection module to be installed, see its documentation for details. You can use this field to protect any built informs on your website, including user comments in the
Configuration example in
FormSpamProtectionExtension: default_spam_protector: 'UniProtectProtector'
Then once you have setup this config you will need to include the spam protector field as per the instructions on the
SpamProtection module page.