Advertising sustains the DA. Ads are hidden for members. Join today

Installation and Configuration

Last updated on
20 May 2022

Installation

Download the module using composer. If you need instructions on how to download a module using composer for your Drupal project you can read the documentation here: how to install dependencies with composer in Drupal 8.

composer require drupal/recaptcha_v3

Enable the module in the "extend" section of Drupal back-office (admin/modules).

Require PHP 7.1+

Configuration

First, register reCAPTCHA v3 keys here. Navigate to Configuration > CAPTCHA module settings > reCaptcha V3,  enter the "Site key" and "Secret key".
reCaptcha v3 settings

Navigate to Configuration > CAPTCHA module settings > reCaptcha V3 actions and add a new action. 

Add new action 1

Add an appropriate name for your reCAPTCHA v3 action. Google reCAPTCHA v3 returns a score (1.0 is very likely a good interaction, 0.0 is very likely a bot). Based on the score, you can take variable action in the context of your site. You could specify the additional validation challenge for failed reCAPTCHA v3 validations. If you left empty "Default challenge type" option and "Challenge" for concrete action, then if user validation failed, reCAPTCHA v3 will be used again. This can bring to the inability to submit forms for suspicious users.

Add new reCaptcha v3 action

I'm recommending using this module together with reCaptcha: set the default captcha type to reCAPTCHA v3 and select reCaptcha v2 for the additional challenge. In this case, you will have unintrusive reCAPTCHA v3 as the default challenge and standard reCaptcha for failed user validations.

I am using using "Math captcha" as fall back challenge in this guide. Add reCaptcha v3 action

Finally you need to configure the action you created in Captcha points form (You can do the same in webform as well).

captcha points form reCaptcha v3Captcha points form reCaptcha v3

Help improve this page

Page status: No known problems

You can: