Setting Up reCAPTCHA
Chapter 1:
Last updated
Chapter 1:
Go to the Google reCAPTCHA Admin Console.
Register your site by adding your domain (e.g., localhost for development and your production domain).
Choose reCAPTCHA v3.
Copy the Site Key and Secret Key.
Open your .env file and add the keys:
NEXT_PUBLIC_RECAPTCHA_SITE_KEY=your_site_key
RECAPTCHA_SITE_SECRET=your_secret_keyIn your backend, ensure that the domains allowed to submit forms are whitelisted. The SSK Form Component provides this by default for production and development environments.
const WHITE_LISTED_HOSTNAMES = [
'localhost',
'yourdomain.com',
'www.yourdomain.com',
]This prevents tokens from untrusted sources from being processed.
Last updated