3dgoo / silverstripe-hcaptcha
A spam protector and form field using hCaptcha
Installs: 474
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 2
Forks: 0
Type:silverstripe-vendormodule
Requires
- guzzlehttp/guzzle: ^6.5 || ^7
- silverstripe/framework: ^4.0
- silverstripe/spamprotection: ^3.0
Requires (Dev)
README
A spam protection field for Silverstripe using the hCaptcha service.
Requirements
- Silverstripe Framework 4.x
- Silverstripe Spam Protection 3.x
- Guzzle 6.5
Installation (with composer)
$ composer require 3dgoo/silverstripe-hcaptcha
Configuration
After installing the module via composer we must set the spam protector to HCaptchaProtector through a config yml file.
Create a app/_config/spamprotection.yml
file and add the following details:
--- name: app-spamprotection --- SilverStripe\SpamProtection\Extension\FormSpamProtectionExtension: default_spam_protector: X3dgoo\HCaptcha\Forms\HCaptchaProtector X3dgoo\HCaptcha\Forms\HCaptchaField: site_key: "YOUR_SITE_KEY" secret_key: "YOUR_SECRET_KEY"
We generate our site key and secret key at https://www.hcaptcha.com/