How to Add reCAPTCHA to Magento 2

How to Add reCAPTCHA to Magento 2

CAPTCHA means Completely Automated Public Turing Test to Tell Computers and Humans Apart. The technology is used to stop all the hackers from attacking your websites. Here, the users have to go through a type of challenge-response test before proceeding to purchase items from your website or contacting.

The user has to type the CAPTCHA with words or letters displayed on the screen to verify that they are humans, not automated robots capable of hacking. In this article, you will find the step by step guideline for adding the technology to your Magento 2 contact form using a plugin, called reCAPTCHA.

Sign Up for a New Google reCAPTCHA Account

Step 1: Sign into your Gmail account. Then head to the reCAPTCHA page.

Step 2: Click on Sign Up button.

Step 3: A new page will appear. Type the label of your website, along with your store’s domain. Then click on the Register button.

Step 4: The Site Key and Secret Key will be displayed. You will need to use them later for configuring the extension in your Magento 2 store.

Download and Install reCAPTCHA Plugin

First, you have to download reCAPTCHA extension from here. Unzip the installation directory to the root directory of your Magento 2 store. In this way, you can install the specific plugin. Now, clear the cache. Otherwise, your website might not work properly.

Configuring reCAPTCHA Plugin in Your Magento 2 Store

Step 1: Head to Admin Panel. Then go to System > Configuration.

Step 2: Find the General tab. Click on Contacts.

Step 3: In Enable Captcha, select Yes option. Copy and paste Site Key and Secret Key that you get while registering for a new Google reCAPTCHA account. Click on the Save Config button.

Now, go to the Contacts page of your Magento 2 website. You will find the reCAPTCHA being added there successfully.

Conclusion

In this article, you have learned the process of adding reCAPTCHA to your Magento 2 Contacts form. You can also use the extension in different areas of your website, including new user registration. It will free your site from all sorts of spams and hacks. So, if you really focus on security, you must use reCAPTCHA on your store.

Check out these top 3 Magento hosting services:

HostArmada
$2.49 /mo
Starting price
Visit HostArmada
Rating based on expert review
  • User Friendly
    4.5
  • Support
    4.5
  • Features
    4.5
  • Reliability
    4.5
  • Pricing
    4.0
Ultahost
$2.90 /mo
Starting price
Visit Ultahost
Rating based on expert review
  • User Friendly
    4.3
  • Support
    4.8
  • Features
    4.5
  • Reliability
    4.0
  • Pricing
    4.8
Hostinger
$1.99 /mo
Starting price
Visit Hostinger
Rating based on expert review
  • User Friendly
    4.7
  • Support
    4.7
  • Features
    4.8
  • Reliability
    4.8
  • Pricing
    4.7

How to Use reCaptcha in Joomla?

This tutorial will help you configure reCaptcha on your Joomla website to get ri
2 min read
Avi Ilinsky
Avi Ilinsky
Hosting Expert

How to use Magento 2 CMS

This tutorial is written to help you use Magento 2 Content Management System (CM
3 min read
Michael Levanduski
Michael Levanduski
Expert Hosting Writer & Tester

How To Upload A File To An FTP Server Via Coding in Magento?

This guide will help you use codes to upload a file to an FTP server in Magento
2 min read
Idan Cohen
Idan Cohen
Marketing Expert

How to Setup UPS Carrier in Your Magento 2 store

This tutorial will help you configure the United Parcel Service carrier in your
3 min read
Marin Dujic
Senior Writer & Hosting Expert
HostAdvice.com provides professional web hosting reviews fully independent of any other entity. Our reviews are unbiased, honest, and apply the same evaluation standards to all those reviewed. While monetary compensation is received from a few of the companies listed on this site, compensation of services and products have no influence on the direction or conclusions of our reviews. Nor does the compensation influence our rankings for certain host companies. This compensation covers account purchasing costs, testing costs and royalties paid to reviewers.
Click to go to the top of the page
Go To Top