Skip to content

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.

ProviderValueType
reCAPTCHA v22Checkbox challenge
reCAPTCHA v33Invisible, score
hCaptchahcaptchaCheckbox challenge
Cloudflare TurnstileturnstileManaged 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 ​

  1. Go to the reCAPTCHA admin console
  2. 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
  3. Add your domain and submit
  4. 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 ​

  1. Sign in to the hCaptcha dashboard
  2. Go to Sites and click New Site
  3. Add your domain and save
  4. Copy the site key
  5. Go to Settings and copy your account secret key

Cloudflare Turnstile ​

  1. Sign in to the Cloudflare dashboard
  2. Go to Turnstile and click Add widget
  3. Name the widget, add your domain, and choose the widget mode (Managed is recommended)
  4. 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:

  1. Set CAPTCHA to Enabled
  2. Select the CAPTCHA API matching your provider
  3. Enter the CAPTCHA site key and CAPTCHA secret key
  4. Adjust the CAPTCHA threshold if needed, and save

Released under the Apache-2.0 License.