Aller au contenu principal

Cloudflare Turnstile

Turnstile is a CAPTCHA service that helps protect your website from spam and abuse. This guide will walk you through the process of setting up Turnstile with Logto.

Prerequisites

  • A Cloudflare account

Setup

  1. Go to the Cloudflare Dashboard and select your account.
  2. Navigate to Turnstile > Add widget.
  3. Fill out the form with the following details:
    • Widget name: Any name you want to give to the widget
    • Hostname: Logto's endpoint domain, e.g. https://[tenant-id].logto.app
    • Widget Mode: Leave as default

Get the site key and secret key

  1. Navigate to a widget you just created, and click Manage widget.
  2. Scroll down to the bottom and copy the Site key and Secret key.

Enable CAPTCHA

Remember to enable CAPTCHA bot protection after you have set up the CAPTCHA provider.

Go to the Security page, find the CAPTCHA tab, and switch on the toggle button of "Enable CAPTCHA".