How to Add Google reCAPTCHA

WHAT IS RECAPTCHA?
 
reCAPTCHA protects your website from fraud and abuse.
reCAPTCHA uses an advanced risk analysis engine and adaptive challenges to keep malicious software from engaging in abusive activities on your website. Meanwhile, legitimate users will be able to login, make purchases, view pages, or create accounts and fake users will be blocked.
 

To get Google recaptcha to work in your registration page, please do the following

  1. Register your domain in the google recaptcha page, to do this click the link https://www.google.com/recaptcha/admin/create  
  2. Enter your domain name, usually mysitename.com   NOTE: there’s no need to enter ’https://’ before you type the site name
  3. Choose reCAPTCHA v2 and select the challenge you want, usually "I’m not a robot" Checkbox”.
  4. In the Domain Box type your domain name again, NOTE: You can have multiple domain using same google recaptcha
  5. In the Owners filed, enter your email address, if the one already provided is not yours.
  6. Accept the Recapcha terms of service
  7. You may optionally want to click the box to receive alert
  8. Click submit
  9. Copy your site key and secret key.
  10. Paste then in the .env file

    NOCAPTCHA_SECRET=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

    NOCAPTCHA_SITEKEY=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  11. That’s all.