reCAPTCHA
Last updated
Was this helpful?
Last updated
Was this helpful?
Blockscout currently supports reCAPTCHA v2 in invisible mode. Previous frontend versions (v1.36.x) support v3, but moving forward we will only support v2.
reCAPTCHA from Google is a free service designed to protect your site from spam and bots. It can be used in Blockscout to prevent bot activity related to CSV downloads and account validation. reCAPTCHA is turned on by default, but can be disabled by setting RE_CAPTCHA_DISABLED
to true.
1) To use reCAPTCHA you will need a CLIENT_KEY
(SITE KEY) and SECRET_KEY
Go to , login to Google with an existing account, and fill in the following info:
Label: Private label to identify the instance in your reCAPTCHA admin dashboard.
reCAPTCHA type: Select Challenge (v2) and Invisible reCAPTCHA badge
Domains: Enter your primary Blockscout domain, all associated subdomains will be covered. You can enter multiple domains, and also localhost for testing if needed.
Submit
2) Copy your keys and use them with the following ENV variables to enable reCAPTCHA.
RE_CAPTCHA_CLIENT_KEY
SITE KEY
RE_CAPTCHA_SECRET_KEY
SECRET KEY
3) Add the keys to your ENV variables.
Disable reCAPTCHA by setting RE_CAPTCHA_DISABLED
to true
Once setup, you can view and update your reCAPTCHA settings on the Google admin dashboard at
Backend reCAPTCHA ENVs are located in the Backend ENVs: Common page in the .
Frontend reCAPTCHA ENVs are located on the Frontend ENVs: Common -> ENVs page in the .
Disable checking reCAPTCHA domain names by setting RE_CAPTCHA_CHECK_HOSTNAME
to false. This will bypass checking the hostname info added during reCAPTCHA setup in Google.