https://github.com/a2nt/silverstripe3-hcaptcha
hCaptcha for SilverStripe3
https://github.com/a2nt/silverstripe3-hcaptcha
Last synced: 11 months ago
JSON representation
hCaptcha for SilverStripe3
- Host: GitHub
- URL: https://github.com/a2nt/silverstripe3-hcaptcha
- Owner: a2nt
- License: other
- Created: 2022-11-04T13:22:20.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-11-04T13:26:41.000Z (over 3 years ago)
- Last Synced: 2025-05-29T11:54:32.844Z (about 1 year ago)
- Language: PHP
- Size: 5.86 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: code-of-conduct.md
Awesome Lists containing this project
README
# silverstripe3-hcaptcha
## Introduction
Provides a FormField which allows form to validate for non-bot submissions
using HCAPTCHA service
## Requirements
* SilverStripe framework 3.1 or newer
* curl PHP module
* Requires [spamprotection](http://silverstripe.org/spam-protection-module/) module
## Installation
* Copy the `hcaptcha` directory into your main SilverStripe webroot
* Run ?flush=1
This should go in your `mysite/_config/captha.yml`. You can get an free API key at [https://www.hcaptcha.com/](https://www.hcaptcha.com/)
```
FormSpamProtectionExtension:
default_spam_protector: HcaptchaProtector
HcaptchaField:
sitekey: 'your-site-key'
secret: 'your-secret-key'
```
If using on a site requiring a proxy server for outgoing traffic then you can set these additional
options in your `mysite/_config/captcha.yml` by adding.
```
proxy_server: "proxy_address"
proxy_auth: "username:password"
```