User Tools

Site Tools



For more details see the Google Invisible reCaptcha

Google Invisible reCaptcha

Add Google Invisible reCaptcha to any forms on your website easily. The module enables you to protect your store from bots without any coding.

  • Manage your captcha settings in one place
  • Make changes without digging into a website code
  • Protect your store with the latest security option

Google invisible reCaptcha protects your store from spam and frauds while letting real customers pass through easily. But anyway Captcha integration takes time and coding effort. To minimize your developer's work, we create Invisible Captcha solution. Now it's enough just to fill some settings fields to secure your store.

General Settings

To get the access to the Invisible reCaptcha settings please go to System → Configuration → Amasty Extensions → Google Invisible Captcha and expand the General section.

Enable Invisible Captcha — enable or disable the Invisible reCaptcha module;

Site Key — fill in an individual site key generated for your store. See this section for details;

Secret Key — fill in an individual secret key generated for your store. See this section for details;

Language — set the language for Invisible Captcha. You can see the list of the available languages here;

When you activate the Language option you are disallowing Google to detect a user agent automatically.
You can set different Languages for different Store Views. Please switch the Configuration scope to set another language.

Theme of Captcha Badge — define the Captcha Badge theme (light or dark);

Position for Captcha Badge — specify the position of the Captcha Badge on the page.

Generating Site Key and Secret Key

To get a Site key and a Secret key click here.

  1. Set the name;
  2. Select the Invisible reCAPTCHA option;
  3. Define the domain of your website;
  4. Tick the Terms of use checkbox;
  5. Press the Register button.

Copy the keys from this page:

Go back to the backend of the module.

Paste the Site key and the Secret key in the General settings tab.

Hit the Save Config button.

Adding Invisible Captcha to Forms

To specify forms that should be protected with the Google Invisible reCaptcha module please expand the Advanced Settings section.

Right after the installation Google Invisible reCaptcha protects contact, registration, review, and subscription forms.

URLs to Enable — specify the form URLs that should be protected;

It is not the URL where your form is located.

Selectors for Forms — fill in the selectors for each form.

For example you would like to add a Google reCAPTCHA to a registration form. This is how to get the URL:

1. Go to the registration form page.

2. Fill in the form.

3. Open the Inspect window, and then the Network tab.

4. After submitting the form you need to find a request with POST in the 'Method' column and 302 Status.

5. Click on this request and in the 'Headers' tab find a 'Request url'. Сopy the path from the url (in our example it is customer/account/createpost/).

6. Paste the URL in the 'URLs to enable' field.

In the Selector for forms field you need to put a CSS selector of the form.

This is how to get a CSS selector for the Create an account form:

1. Go to 'Create an account' page and open the 'Inspect' window.

2. Find the HTML code of the form, click on the right mouse button and choose Copy → Copy selector

You should be absolutely sure that the selector is unique. Otherwise, Google CAPTCHA would be added to the all elements that have this selector name. Ask your developer to check it.

3. In our case the selector is .customer-account-create .account-create form and we added it to the Selector for forms field.

Enable Invisible Captcha for guests only - set this option to Yes to activate captcha for non-registered clients only.

IP whitelist - specify IP addresses for which invisible captcha will be disabled.

Each IP must be on a new line.

Save the configuration.

Invisible Captcha for Amasty Extensions

The module comes with built-in support of several Amasty extensions.

Please expand the Invisible Captcha for Amasty Extensions section.

Here you can see the names of the supported modules: Custom Form, Blog Pro, Product Questions. If the module is installed, then you can enable or disable the Captcha for it. All required settings will be added automatically.

If the module is not installed you will see that the dropdown menu is inactive and the module is marked as Not installed.

Hot to Check Invisible reCaptcha

When everything is set, it is important to check how reCaptcha works. Please, follow these steps:

  1. Open the page which has a form protected by Google Invisible reCaptcha;
  2. Open your browser console;
  3. Choose to perform as any other browser or device;
  4. Try submitting the form several times until Google shows you the reCaptcha test.

Rate the user guide
 stars  from 9 votes (Details)
magento_1/google_invisible_captcha.txt · Last modified: 2019/02/13 09:08 by tihomirova