CAPTCHA providers
CAPTCHA providers protect your website against bots and automated abuse by challenging visitors to prove they are human.
Pro feature
CAPTCHA is available in Chevereto Pro.
Supported providers
The table below lists all supported providers and the value stored for each one in the captcha_api setting.
| Provider | Value | Type |
|---|---|---|
| reCAPTCHA v2 | 2 | Checkbox challenge |
| reCAPTCHA v3 | 3 | Invisible, score |
| hCaptcha | hcaptcha | Checkbox challenge |
| Cloudflare Turnstile | turnstile | Managed challenge |
Where CAPTCHA is used
When enabled, CAPTCHA protects the following forms:
- Login
- Sign up
- Password-protected albums
- Contact page
- Forgot password and password reset
- Resend account activation
- Add email address
- Two-factor authentication
By default, CAPTCHA is shown only after a visitor reaches the CAPTCHA threshold of failed attempts in a day. Set the threshold to 0 to always show it. The contact page can always show CAPTCHA, whatever the threshold, using Force CAPTCHA on contact page.
Create site keys
Each provider requires you to register your website in its admin console. Registering your website gives you a site key (public) and a secret key (private).
When asked for a domain, add the domain where your Chevereto website is served (for example yourwebsite.com).
reCAPTCHA
- Go to the reCAPTCHA admin console
- Choose the reCAPTCHA type that matches the API you will use:
- Challenge (v2) > "I'm not a robot" Checkbox for reCAPTCHA v2
- Score based (v3) for reCAPTCHA v3
- Add your domain and submit
- Copy the site key and secret key
Keys are version specific
reCAPTCHA v2 keys don't work with reCAPTCHA v3, and v3 keys don't work with v2. Make sure the key type matches the selected CAPTCHA API.
With reCAPTCHA v3 nothing is shown to visitors. Chevereto verifies the token in the background, using the /captcha-verify route.
hCaptcha
- Sign in to the hCaptcha dashboard
- Go to Sites and click New Site
- Add your domain and save
- Copy the site key
- Go to Settings and copy your account secret key
Cloudflare Turnstile
- Sign in to the Cloudflare dashboard
- Go to Turnstile and click Add widget
- Name the widget, add your domain, and choose the widget mode (Managed is recommended)
- Copy the site key and secret key
Turnstile doesn't require your website to be proxied through Cloudflare.
Provide site keys
Once you have the keys, go to Settings > External services:
- Set CAPTCHA to Enabled
- Select the CAPTCHA API matching your provider
- Enter the CAPTCHA site key and CAPTCHA secret key
- Adjust the CAPTCHA threshold if needed, and save
