Protect your forms with hCaptcha, a GDPR, CCPA, LGPD, PIPL and more compliant spam prodection (according their website)
Note: This version of the module is compatible with Silverstripe CMS 5.x. For Silverstripe 4.x compatibility, please use an earlier version/tag.
Make sure you met the following requirements beforehand:
composer require oposs/silverstripe-hcaptcha
And set hCaptcha as your default spamprotector:
# app/_config/spamprotection.yml SilverStripe\SpamProtection\Extension\FormSpamProtectionExtension: default_spam_protector: Oposs\hCaptcha\hCaptchaProtector
In your app/_config/hcaptcha.yml
Oposs\hCaptcha\Forms\hCaptchaField: site_key: 'your_site_key' # Make sure to set the key starting with 0x.. in quotes secret_key: 'your_secret_key' # To configure options listed here https://docs.hcaptcha.com/configuration api_configuration: recaptchacompat: 'off'
For more configuration options check comments in hCaptchaField.php
In php:
use Oposs\hCaptcha\hCaptchaProtector\Forms new hCaptchaField('SpamProtection', 'SpamProtection', null);
Or if you use Userforms:
Q: Users are redirected to the main page when the captcha is incorrect or not solved
A: This is most likely a redirecting problem, if your site is running behind a proxy have a look at the Director's alternate_base_url
property (albeit heavily used, not document yet...)
Contributions are welcome :)
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4