> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.weltpixel.com/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# How to set up reCAPTCHA on Magento 2

Google reCAPTCHA is a security service that prevents fraud and abuse on your website.

Starting with Magento 2.3.x, Google reCAPTCHA is included by default in the Magento Core, meaning that it only needs to be configured in order to be ready for use. To enable and configure it, follow the steps below:

In order to enable the reCAPTCHA from Google, you need a pair of API keys.

**Important:** For reCAPTCHA to be enabled, valid **Google API Website Key** and **Google API Secret Key** fields are required.

Before you start the setup and generate the API keys, you need to know what type of reCAPTCHA you want to use. There are 3 options available:

* reCAPTCHA v2 ("I am not a robot")
* reCAPTCHA v2 Invisible
* reCAPTCHA v3 Invisible

To set it up, first, go to [Google reCAPTCHA](https://www.google.com/recaptcha/about/) and generate the reCAPTCHA keys.

After generating the API keys for the reCAPTCHA type you choose for your site, follow these steps to set it up in Magento:

### Set reCAPTCHA for Magento Admin Store

Go to **Admin -> Stores -> Settings -> Configuration -> Scope: Default Config -> Security -> Google reCAPTCHA Admin Panel**

![magento2-admin-recaptcha-settings.png](https://storage.crisp.chat/users/helpdesk/website/-/8/b/b/6/8bb674a540a7c800/96601f39-9e29-45c7-9c24-d449a8_1psvmg5.png)

#### 1. Set up reCAPTCHA v2 ("I am not a robot")
* **Google API Website Key** – Add the key created for this reCAPTCHA type.
* **Google API Secret Key** – Add the secret key associated with your Google reCAPTCHA account.
* **Size** – Normal or Compact.
* **Theme** – Light or Dark.
* **Language Code** – Optional. Forces the widget to render in a specific language. Auto-detects if unspecified. See [supported language codes](https://developers.google.com/recaptcha/docs/language).

![magento2-recaptcha-v2.png](https://storage.crisp.chat/users/helpdesk/website/-/a/3/8/7/a38732eefb48180/d3818ed3-31e9-47b7-87b0-5cd0db_17hgudy.png)

#### 2. Set up reCAPTCHA v2 Invisible
* **Google API Website Key** – Add the key.
* **Google API Secret Key** – Add the secret key.
* **Invisible Badge Position** – Inline, Bottom Right, or Bottom Left.
* **Theme** – Light or Dark.
* **Language Code** – Optional.

![magento2-recaptcha-invisible.png](https://storage.crisp.chat/users/helpdesk/website/-/3/0/d/8/30d83e49b5cd7400/8a98d580-9fb0-48e5-b143-1a3f4c_19ikanu.png)

#### 3. Set up reCAPTCHA v3 Invisible
* **Google API Website Key** – Add the key.
* **Google API Secret Key** – Add the secret key.
* **Minimum Score Threshold** – Identifies when a user could be a bot (0.0 = likely bot, 1.0 = normal user, default = 0.5).
* **Invisible Badge Position** – Inline, Bottom Right, or Bottom Left.
* **Theme** – Light or Dark.
* **Language Code** – Optional.

![magento2-recaptcha-v3.png](https://storage.crisp.chat/users/helpdesk/website/-/a/8/c/0/a8c002cac2a7b000/c6d164c0-6f09-4026-a88c-87d6b9_1os0a4q.png)

#### 4. Set up reCAPTCHA Failure Messages
* **Validation Failure Message** – Custom or Default message.
* **Technical Failure Message** – Custom or Default message.

![magento2-recaptcha-failure-messages.png](https://storage.crisp.chat/users/helpdesk/website/-/a/7/a/0/a7a009f3764cd800/fe789ad6-6bb3-4a3b-8572-dfa82c_1bnd2eu.png)

#### 5. Admin Panel
Choose where reCAPTCHA should appear:
* Login Page
* Forgot Password page

![magento2-admin-panel-recaptcha.png](https://storage.crisp.chat/users/helpdesk/website/-/3/6/4/3/364310e22c113600/56307f12-301e-4c73-872a-bd9785_gjefda.png)

### Set reCAPTCHA for the Storefront

Go to **Admin -> Stores -> Settings -> Configuration -> Scope: Default Config -> Security -> Google reCAPTCHA Storefront**

![magento2-storefront-recaptcha.png](https://storage.crisp.chat/users/helpdesk/website/-/6/f/5/0/6f50498631700000/554f09cc-3762-4498-ba95-9f80da_1y6d4aa.png)

Options available include:
* Customer Login
* Forgot Password
* Create New Customer Account
* Edit Customer Account
* Contact Us
* Product Review
* Newsletter Subscription
* Send To Friend
* PayPal PayflowPro payment form

![magento2-recaptcha-storefront-options.png](https://support.weltpixel.com/hc/article_attachments/360019941100/Screenshot_2020-12-15_Configuration_Settings_Stores_Magento_Admin.png)

Click **Save Config** after making changes.

The Google reCAPTCHA should now be enabled and configured on your store to help keep bots away.

If you want to set up **CAPTCHA** on Magento 2, follow this [guide](https://support.weltpixel.com/hc/en-us/articles/115006993288-How-to-set-captcha-in-Magento-2).