> ## Documentation Index
> Fetch the complete documentation index at: https://translations.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

> Auth0のボット検出でサードパーティのCAPTCHAプロバイダー連携を設定する方法を説明します。

# サードパーティのCAPTCHAプロバイダー連携を設定する

Auth0では、[ボット検出](/docs/ja-jp/secure/attack-protection/bot-detection)用に複数のサードパーティCAPTCHAプロバイダー連携をサポートしています。

<div id="google-recaptcha-enterprise-on-google-cloud-platform-gcp">
  ## Google Cloud Platform (GCP) 上の Google reCAPTCHA Enterprise
</div>

Google reCAPTCHA Enterprise は、月間評価数が 100 万件を超えるトラフィック向けの <Tooltip tip="ボット検出: Auth0 がログインプロセス中に CAPTCHA を有効にして、ボットの疑いがあるトラフィックをブロックする攻撃対策の一形態です。" cta="用語集を見る" href="/docs/ja-jp/glossary?term=Bot+Detection">ボット検出</Tooltip> サービスとして利用できます。

GCP で reCAPTCHA Enterprise を設定する方法については、[Google ドキュメントの「Set up reCAPTCHA Enterprise ...」](https://cloud.google.com/recaptcha-enterprise/docs/authenticate-apis)を参照してください。

<div id="locate-your-gcp-project-id">
  ### GCP プロジェクト ID を確認する
</div>

1. [Google Cloud Dashboard](https://console.cloud.google.com/) に移動します。
2. ドロップダウン メニューでプロジェクトを選択し、対応する **Project ID** を確認します。
3. 後で必要になるため、**Project ID** をメモしておきます。

<div id="enable-recaptcha-enterprise">
  ### reCAPTCHA Enterprise を有効にする
</div>

1. [Google Cloud Dashboard](https://console.cloud.google.com/) の検索バーに reCAPTCHA Enterprise API と入力し、マーケットプレイスの検索結果から選択します。
2. API を有効にするには、**Enable** を選択します。

<div id="create-a-site-key">
  ### サイトキーを作成する
</div>

1. [Google Cloud Dashboard](https://console.cloud.google.com/) で、検索バーに reCAPTCHA Enterprise と入力し、マーケットプレイスの検索結果から選択します。
2. **Create Key** を選択します。
3. **Domain List** で、Auth0 テナントのドメインを追加します。
4. **Disable domain verification** のトグルを有効にします。
5. Google の「私はロボットではありません」確認チェックボックスを有効にするには、**Use checkbox challenge** のトグルを有効にします。
6. **Challenge Security** で、チャレンジの難易度を選択します。
7. **Create Key** を選択します。
8. 後で必要になるため、**Site Key** を控えておきます。

<div id="create-an-api-key">
  ### API Key を作成する
</div>

1. [Google Cloud Dashboard](https://console.cloud.google.com/) で、検索バーに Credentials と入力し、検索結果から選択します。
2. **Create Credentials > API Key** を選択します。後で必要になるため、**API Key** を控えておきます。
3. ポップアップで **Edit Key** を選択します。
4. **Application Restrictions** で **IP addresses (web servers, cron jobs, etc.)** を選択し、[Allow List 用の Auth0 IP アドレス](/docs/ja-jp/secure/security-guidance/data-security/allowlist) を入力します。
5. **API Restrictions** で **Restrict Key** を選択し、ドロップダウンリストから **reCAPTCHA Enterprise API** を選択して、OK をクリックします。
6. **Save** を選択します。

<div id="hcaptcha">
  ## hCaptcha
</div>

hCaptcha ウィジェットを使用すると、ボット、スパム、その他の自動化された不正利用からアプリケーションを保護できます。

hCaptcha の詳細や設定情報の取得方法については、[hCaptcha Docs の Switch from reCAPTCHA to hCaptcha](https://docs.hcaptcha.com/switch) をご覧ください。

<div id="friendly-captcha">
  ## Friendly Captcha
</div>

Friendly Captcha は、ウェブサイト上のスパムを防ぐためのシステムです。ユーザーエクスペリエンスへの影響をほとんど抑えたまま、Friendly Captcha のウィジェットをウェブアプリに追加してスパム対策を行えます。

Friendly Captcha の詳細や設定情報の取得方法については、[Friendly Captcha Docs の Installation](https://docs.friendlycaptcha.com/#/installation?id=installation)を参照してください。

<div id="arkose">
  ## Arkose
</div>

Arkose Labs は、人手による攻撃やボットによる攻撃を軽減するためのボット検出ソリューションを提供しています。CAPTCHA プロバイダーとして Arkose とシームレスに連携する方法について詳しくは、[Arkose Bot Manager](https://www.arkoselabs.com/arkose-bot-manager/) を参照してください。

<Warning>
  Arkose を CAPTCHA プロバイダーとして使用するには、Auth0.js v9.23 以降にアップグレードする必要があります。
</Warning>

<div id="configure-callback-action-with-auth0js">
  ### Auth0.js でコールバック処理を設定する
</div>

CAPTCHA プロバイダーとして Arkose を使用する場合、Auth0.js の WebAuth クライアントの `renderCaptcha` メソッドでは、コールバック関数を渡せます。コールバックの 2 番目のパラメーターには、`triggerCaptcha` 関数を含む payload オブジェクトが渡されます。`triggerCaptcha` 関数を使用すると、アプリケーションで CAPTCHA プロンプトをどのように処理し、レンダリングするかを設定できます。

`renderCaptcha` メソッドの設定方法について詳しくは、Auth0.js ドキュメントの [renderCaptcha](https://auth0.github.io/auth0.js/WebAuth.html#renderCaptcha) をご覧ください。
