| Summary | Discourse Captcha adds CAPTCHA challenge support to the local sign-up form, with support for multiple providers including hCaptcha and reCAPTCHA. | |
| Install guide | This plugin is bundled with Discourse core. There is no need to install it separately. |
Hosted by us? This plugin is available on our Pro, Business, and Enterprise plans. https://www.discourse.org/plugins/captcha
Supported providers
The plugin supports the following CAPTCHA providers:
- hCaptcha — a privacy-focused CAPTCHA service with a free tier of up to one million requests per month.
- reCAPTCHA — Google’s CAPTCHA service.
Both providers require a site key and a secret key, which you obtain from the provider’s dashboard and enter into the plugin settings.
Configuration
The
enable_local_loginssite setting must be active. The plugin will not work if local logins are disabled.
hCaptcha
-
Visit hcaptcha.com and create an account. Choose the plan that suits your site’s traffic. A Sitekey and Account Secret are generated during setup.
Keep your secret key private at all times. -
In your Discourse admin panel, go to Admin → Plugins → Installed → Captcha Settings, or search for
captchain site settings. -
Set
discourse_captcha_providertohcaptcha. -
Copy the Sitekey into the
hcaptcha_site_keysetting and the Account Secret into thehcaptcha_secret_keysetting. -
Enable the plugin via the
discourse_captcha_enabledsetting.
reCAPTCHA
-
Visit google.com/recaptcha and sign in with a Google account. Register a new site to receive a Site Key and Secret Key.
Keep your secret key private at all times. -
In your Discourse admin panel, go to Admin → Plugins → Installed → Captcha Settings, or search for
captchain site settings. -
Set
discourse_captcha_providertorecaptcha. -
Copy the Site Key into the
recaptcha_site_keysetting and the Secret Key into therecaptcha_secret_keysetting. -
Enable the plugin via the
discourse_captcha_enabledsetting.
Upgrading from Discourse hCaptcha
This plugin replaces the previous Discourse hCaptcha plugin. If you were already using hCaptcha, your configuration is preserved automatically — you don’t need to re-enter your keys.
Last edited by @Juan_David_MartĂnez 2026-07-21T22:22:58Z
Check document
Perform check on document:
