We are to walk you through the process of implementation Recaptcha in your Drupal site. This module allows you to use the google reCaptcha web services to improve the CAPTCHA system. This system is designed to be hard with bots while being easy on the human users. In fact, it provide security using state of the art technologies by staying at the forefront of spam and abuse fighting trends.
CAPTCHA, or the completely automated public turing test to tell computers and human aapart, is used to protect data and prevent unauthorized account access and pasword encryption. Composed of two parts – a random sequence of desorted letters and numbers and a text box – a CAPTCHA requires humans to type of characters into the text box to verify that they are not bot or other computer programs.
While computers can create a CAPTCHA image, they can’t read or solve this type of problems like a human can. Now that you have a better understanding of CAPTCHA and why it is works.
Here are some steps for setup the reCaptcha into the
webform :-
Step 1 :- Setup the Drupal version which is required and configure the drupal admin.
- Choose Language.
- Choose Profile.
- Verify Requirements.
- Set up the Database.
- Install site.
- Configure site.
Step 2 :- Install the ReCaptcha module using the given instruction.
- First you need to open the terminal appliction on your PC/Device.
- After that, type: “Composer require drupal/recaptcha in the terminal”.
- Then click on the Extend option.
- Next, scroll down the windows and click on Enable captcha, image captcha, and reCaptcha.
- Lastly, click on the instll option and site back.
Step 3 :- Configure the Module.
Now that you have install the module, it is time to
configure the settings..
- Navigate to the module and click: Configuration -> Captcha module settings - > reCaptcha
- Click on the link “register to reCaptcha” and it will redirect to the next window.
- Select the reCaptcha v2 and input your domain name.
- Click on Accept the terms and click send/OK.
- After that you need to the site key and secret key. Now you to copy and paste them on the reCaptcha settings of your Drupal backend accordingly.
- After inputing the site key and secret key in the respective text field scroll down and click Save Configuartion.
- Click on the CAPTCHA settings tab on the top of the window, change the default challenges type to reCaptcha and leave the other settings on default, Click on Save Configuration.
- Switch to the Form Settings tab and enable the reCaptcha on your web forms by editing and operation to Enable.
- Select the reCAPTCHA type challenges, click on the save option to save yor changes.
Step 4 :- Head to the dedicated reCAPTCHA tab at the top to finalise the installation. The following needs to be done only once.
Step 5 :- Require the configuration site key and secret key in order to activate reCaptcha.
- After then enter the label then set the domain of your website after write the project name of your current website.
- hen submit the Google reCaptcha configuration.
- Then after submitting these configuration the site key and secret key were generated in front of you.
Step 6 :- Register reCaptcha v2 key here. Navigate to Configuration -> module settings -> reCAPTCHA v2 enter the site key and secret key.
Step 7 :- We our now ready to add reCaptcha to our form.
- Go to the Drupal admin STRUCTURE -> WEBFORM.
Step 8 :- Finally you need to configure the actions you created in Captcha point from ( you can do the same in webform as well).
Step 9 :- Click Edit [captcha] entry.