Home

Enable Captcha Protection

Supabase provides you with the option of adding captcha to your sign-in, sign-up, and password reset forms. This keeps your website safe from bots and malicious scripts. Supabase authentication has support for hCaptcha and Cloudflare Turnstile.

Sign up for Captcha#

Enable Captcha protection for your Supabase project#

Navigate to the Authentication page in the Supabase Dashboard and find the Enable Captcha protection toggle under the Security and Protection section.

supabase_auth_general_settings.png

Enter your Captcha Secret key and click Save.

Add the Captcha frontend component#

The frontend requires some changes to provide the captcha on-screen for the user. This example uses React and the corresponding Captcha React component, but both Captcha providers can be used with any JavaScript framework.

Run the application and you should now be provided with a captcha challenge.

Need some help?

Not to worry, our specialist engineers are here to help. Submit a support ticket through the Dashboard.