# hCaptcha プラグイン

**URL:** <https://meta.discourse.org/t/hcaptcha-plug-in/308325>\
**Category:** Support\
**Tags:** moderation, captcha\
**Created:** [2024 年 5 月 16 日午後 9:44 UTC](https://meta.discourse.org/t/hcaptcha-plug-in/308325 "2024-05-16T21:44:23Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Arkshine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arkshine/32/298682_2.png) [@Arkshine](https://meta.discourse.org/u/Arkshine)\
**Post date:** [2024 年 5 月 16 日午後 10:04 UTC](https://meta.discourse.org/t/hcaptcha-plug-in/308325/2 "2024-05-16T22:04:47Z")

</div>

ローカルでテストしましたが、すべて正常に動作しているようです。

> **README を参照して API キーを取得しました（数秒かかります）。**
>
> > ## 概要
> > 
> > このプラグインは、Discourse フォーラムのサインアップフォームに HCaptcha を統合するように設計されています。このプラグインは、HCaptcha のプライバシー中心の機能を利用して、セキュリティとボット保護を強化することを目的としています。セットアッププロセスは簡単で、いくつかの簡単な手順で構成されます。
> > 
> > ## インストール
> > 
> > 1. **HCaptcha アカウントを作成する** :
> > - [HCaptcha](https://www.hcaptcha.com/) にアクセスしてアカウントを作成します。登録後、サイトキーとシークレットキーが提供されます。
> > 
> > 2. **ローカルテストを設定する** （オプション）:
> > - ローカルでテストしている場合は、hosts ファイルに新しい仮想ホストエントリを追加します。`127.0.0.1 test.mydomain.com` のような行を含めます。HCaptcha スクリプトが正しく読み込まれるように、ドメインを所有していなくても有効なドメインであることを確認してください。
> > 
> > 3. **プラグイン設定を構成する** :
> > - Discourse 管理パネルにログインします。
> > - `Admin` \> `Settings` \> `Plugins` \> `hCaptcha (settings)` に移動します。
> > - このセクションで、HCaptcha から取得したサイトキーとシークレットキーを追加します。
> > 
> > これらの手順を完了すると、コミュニティのサインアップフォームに HCaptcha が正常に統合されます。

画像はこちらです。

 ![The image shows a user registration form on a website, with fields for name and password, a checked password strength indicator, an unchecked CAPTCHA box for human verification, and a prompt to complete the hCaptcha challenge, with options to either create an account or log in. (Captioned by AI)](https://global.discourse-cdn.com/meta/original/4X/4/f/c/4fc37f3a0e08ba6485b52ad20235522414f910ca.png)

 ![The image shows a CAPTCHA verification screen asking the user to select animals with the most legs, displaying various animals including a dog, birds, and a horse. (Captioned by AI)](https://global.discourse-cdn.com/meta/original/4X/d/5/f/d5f8da8895a939f89ed9b679e3b42c8a19d29caa.jpeg)

![The image shows a completed hCaptcha widget with a checked box next to the statement "I am human," indicating that the user has passed the CAPTCHA challenge to verify that they are not a robot. (Captioned by AI)](https://global.discourse-cdn.com/meta/original/4X/4/7/c/47cbf7b9ab5ad6e71fb9016dd27a372b0810b795.png)

お役に立てば幸いです！ 👍

---

_[View the full topic](https://meta.discourse.org/t/hcaptcha-plug-in/308325)._
