Configuring reCAPTCHA
What is reCAPTCHA?
reCAPTCHA is a free CAPTCHA service that helps protect your site against spam, malicious registrations and other forms of attacks where computers try to disguise themselves as a human. reCAPTCHA comes in the form of a widget that you can easily add to your blog, forum, registration.
Getting Started
- Visit https://www.google.com/recaptcha/admin
- Follow the steps by select the reCAPTCHA version and get your site key and your secret key.
Configuration from the Admin panel
- Go to your Admin panel → Settings → General → Security
- Enable the "Captcha → Options" field by selecting the "Google reCAPTCHA" option
- Set these Settings fields: 'reCAPTCHA version', 'reCAPTCHA Site Key' and 'reCAPTCHA Secret Key'
Configuration using the .env file
- Login to your FTP account
- Open /.env file.
- Enable the feature by adding the CAPTCHA= variable: CAPTCHA="" (to disable), CAPTCHA="recaptcha" (to enable)
- Provide the keys:
RECAPTCHA_VERSION=your-recaptcha-keys-version RECAPTCHA_SITE_KEY=your-recaptcha-site_key RECAPTCHA_SECRET_KEY=your-recaptcha-secret_key
- Replace placeholders with v2 or v3 version and your actual keys
- Save the file.
NOTE: The .env file configuration overrides admin panel settings.