Files
discourse/plugins/discourse-hcaptcha
Jarek Radosz 52e872961a DEV: Clean up requires (#34946)
1. remove unnecessary `.rb` filename suffixes from `require_relative`
calls
2. replace `require File.expand_path(File.dirname(__FILE__) + …` with
`require_relative`
3. remove `./` prefixes from `require_relative` calls
2025-09-24 12:00:22 +02:00
..
2025-08-27 11:00:03 +02:00
2025-09-24 12:00:22 +02:00

Discourse hCaptcha Plugin

Overview

This plugin is designed to integrate HCaptcha into the sign-up form of Discourse forums. This plugin aims to enhance security and bot protection by leveraging the privacy-centric features of HCaptcha. The setup process is straightforward and consists of a few easy steps.

Installation

  1. Create an HCaptcha Account:

    • Visit HCaptcha to create an account. After registering, you'll receive a site key and a secret key.
  2. Setup Local Testing (Optional):

    • If you are testing locally, add a new virtual host entry to your hosts file. Include a line like 127.0.0.1 test.mydomain.com. Make sure the domain is valid, even if you don't own it, to ensure the HCaptcha script loads properly.
  3. Configure Plugin Settings:

    • Log into your Discourse admin panel.
    • Navigate to Admin > Settings > Plugins > hCaptcha (settings).
    • In this section, add the site key and secret key you obtained from HCaptcha.

By completing these steps, you will successfully integrate HCaptcha into the sign-up form of your community.