Once you're logged in with your Google account, you will be presented with an interface to generate api keys for your website Register your website In order to register a website, simply type anything into the 'label' field of the form. How to generate reCAPTCHA API key A Amal 1 year ago - Created This guide looks into how to generate reCAPTCHA API key from your google account. We have used reCAPTCHA in user login in the exchange to protect it from Bots. Go to reCAPTCHA admin.
Oct 05, 2018 2. If you are signed in into Google account. It will not ask for login details otherwise, get signed in. First remove the old keys if you have of your domain otherwise google site key are not supported.
Bless their hearts, the folks at Google have been busy with their new session-based reCAPTCHA v3 technology. Based on feedback from our client base and pretty much everyone between the ages of 2 and 101 that we’ve asked, it’s been a dismal return to loads of undesired spam (is there such thing as desired spam?).
It comes down to this: reCAPTCHA v2 worked well and v3 still has some ways to go until it reaches both effectiveness of v2 as well as all of the quirks including additional site-wide resource loads.
As the technologies work quite differently, v2 and v3 keys are not compatible. That is to say that a site running a v3 key cannot be used with recaptcha v2 since the same Google reCAPTCHA endpoint is used for both generations of the anti-spam technology. Below we’ll go over how you can generate your reCAPTCHA keys.
First, we can start by giving gratitude that Google didn’t can reCAPTCHA v2 right away like they did Google+. Kidding aside if you do not have a Google Account already you will need to create one, specifically for the Google reCAPTCHA admin console. Once you have an account created and you’re logged into the Google reCAPTCHA console you will be greeted with the register new site screen. If not, click the plus sign at the top right:
- Label: You can use pretty much anything you want (it’s not exposed to the public) but consider something intuitive such as the website name that the key belongs to
- Under reCAPTCHA type, select reCAPTCHA v2 and then select the “I’m not a robot” Checkbox option that appears below it
- Domains
- Add only the domain or sub-domain itself (i.e. no protocols, slashes, ports, etc…) so as an example, this would be iqcomputing.com and www.iqcomputing.com to cover both variants of the iqcomputing.com website.
- These variations won’t work as they contain protocols and ports: https://www.iqcomputing.com/ or iqcomputing.com:443
- Owners
- Optionally add additional owners (these must be email addresses associated with Google accounts)
- Accept the reCAPTCHA Terms of Service
- Admire the minutia and font size of Google API’s Terms of Use
- When satisfied that you didn’t go to law school to spend all day writing the aforementioned terms, click the Accept checkbox
- Send alerts to owners
- Unless your grandparents are one of the owners listed and you’re concerned that they might be confused about notifications regarding spikes in traffic or site configuration issues, checking this is recommended
- Click the SUBMIT button (it’s all capitals to lend it legitimacy so that you know that it’s an important final step)
Now it’s time to get those keys working for you AKA combating the legions of spam-happy bots that are constantly picking at your site, only too eager to generate spam.
You can do this by installing, activating, and adding these keys to your shiny new Contact Form 7 – reCaptcha v2 plugin, available at the amazing price of free on the WordPress plugin repository.
Google reCAPTCHA ensures that a human being, rather than a computer, is interacting with the site. It provides enhanced security over Magento CAPTCHA, performs checks without potential user error when entering a series of letters and numbers, and encourages cart conversion without additional hurdles to complete a purchase.
Customer Login with reCAPTCHA v2
How To Get Recaptcha Key
Google reCAPTCHA verifies users with increased security and reduced clicks for each of completion, which can be implemented in several ways:
- reCAPTCHA v2 verifies users and customers using an on-click feature and one of the following verification methods:
- “I am not a robot” requires users and customers to click the “I’m not a robot” checkbox and possibly select specific images to complete a challenge.
- Invisible reCAPTCHA badge (recommended) performs background verification without user interaction. Users and customers are automatically verified, but might be required to select specific images to complete a challenge.
- reCAPTCHA v3 Verify requests with a score based on a Google algorithm.
Google Api Console
You can use Google reCAPTCHA on the Admin Sign In page, and on various customer pages in the storefront. The reCAPCTHA v2 type includes styling options for your choice of a light or dark theme, and either a compact or normal size.
If you have the standard Magento CAPTCHA enabled, reCAPTCHA will not override it. You can have both enabled on your Magento instance without issues.
Google reCAPTCHA v2 Styles
Before Google reCAPTCHA can be configured, you must ensure that your
PHP.ini
file includes the following setting: allow_url_fopen = 1
. This may require developer assistance. See Required PHP Settings.Step 1: Generate Google reCAPTCHA keys
Google reCAPTCHA requires a pair of API keys to enable. You can get these keys free of charge through the reCAPTCHA site. Before generating the keys, consider the type of reCAPTCHA you want to use.
- Open the Google reCAPTCHA page and log in to your account.
- Create/Register a new site.
- Enter a Label for the keys.For example, enter
Magento v2 Invisible
. You only need one set of keys per each reCAPTCHA type for your entire Magento instance. - Choose the type of Google reCAPTCHA that you want to use:
reCAPTCHA v3
— Verify requests with a scorereCAPTCHA v2
— Verifies with a button click or image selections'I am not a robot' Checkbox
Validate requests with the “I’m not a robot” checkboxInvisible reCAPTCHA badge
Validate requests in the background
- In the Domains text box, enter a list of domains without the HTTP or HTTPS prefix, one per line.Google verifies the addresses entered.
- Add your Magento instance domain and any subdomains.
- You can add
localhost
, other local VM domains, and staging domains as needed for testing.
- Select the checkbox to Accept the reCAPTCHA Terms of Service.
- (Optional) Select the Send alerts to owners checkbox to send notification if Google detects issues or suspicious traffic.Google reCAPTCHA Site Registration
- Click SUBMIT to complete registration and receive keys.
Google Recaptcha Api Key
Important! Not all keys are applicable for all types of reCAPTCHA, and misapplying them could lead to unexpected behavior. For example, Google reCAPTCHA keys generated for reCAPTCHA v2 “I’m not a robot” will not work with reCAPTCHA v2 Invisible and could block functionality where reCAPTCHA is enabled.
Step 2: Configure Google reCAPTCHA in Magento
For reCaptcha v2 types (“I’m not a robot” and Invisible)
- Sign in to the Admin of your Magento store.
- On the Admin sidebar, go to Stores > Settings > Configuration.
- In the upper-right corner, set Store View to
Default Config
. - In the left panel, expand Security and choose Google reCaptcha.
- On the page, expand the General section and enter the following generated keys for the specific reCAPTCHA type to be enabled:
- Google API website key
- Google API secret key
- Select the reCaptcha v2 type based on the generated keys.
- Expand () the Backend section and set the optionsIf needed, clear the Use system value checkbox to change the setting.
- Enable — Set to
Yes
. - Theme — Choose
Light
orDark
. Applicable only to reCaptcha v2(“I am not a robot”). - Size — Choose
Normal
orCompact
. Applicable only to reCaptcha v2(“I am not a robot”).
- Expand () the Frontend section and add Google reCAPTCHA to customer accounts:If needed, clear the Use system value checkbox to change the setting.
- Enable — Set to
Yes
. - Invisible badge position — Choose
Inline
,Bottom Right
, orBottom Left
. Applicable only to Invisible reCaptcha v2 and Invisible reCaptcha v3. - Theme — Choose
Light
orDark
. Applicable only to reCaptcha v2(“I am not a robot”). - Size — Choose
Normal
orCompact
. Applicable only to reCaptcha v2(“I am not a robot”). - Select where the CAPTCHA is used.By default, reCAPTCHA is enabled for these pages.
- Use in Login
- Use in Forgot password
- Use in Contact
- Use in Create user
- Use in Review
- Use in PayPal PayflowPro payment form
- Use invisible ReCaptcha in newsletter Requires an Invisible ReCaptcha v2 or v3 key. If enabled, a badge will be displayed in every page.
- Use in Send To Friend
- When complete, click Save Config.
For reCaptcha v3
- Sign in to the Admin of your Magento store.
- On the Admin sidebar, go to Stores > Settings > Configuration.
- In the upper-right corner, set Store View to
Default Config
. - In the left panel, expand Security and choose Google reCaptcha.
- On the page, expand the General section and enter the following generated keys for reCAPTCHA v3:
- Google API website key
- Google API secret key
- Select reCaptcha type as Invisible reCaptcha v3.
- Expand () the Backend section and set the options.If needed, clear the Use system value checkbox to change the setting.
- Enable — Set to
Yes
. - Minimum score — Input a value from
0.0
to1.0
, where1.0
is very likely a good interaction, and0.0
is very likely a bot. For more, details see the official product documentation Interpreting the score
- Expand () the Frontend section and add Google reCAPTCHA to customer accounts:If needed, clear the Use system value checkbox to change the setting.
- Enable — Set to
Yes
. - Invisible badge position — Choose
Inline
,Bottom Right
, orBottom Left
. Applicable only to Invisible reCaptcha v2 and Invisible reCaptcha v3. - Minimum score — Input a value from
0.0
to1.0
, where1.0
is very likely a good interaction, and0.0
is very likely a bot. For more details, see the official product documentation Interpreting the score - Select where the CAPTCHA is used.By default, reCAPTCHA is enabled for these pages.
- Use in Login
- Use in Forgot password
- Use in Contact
- Use in Create user
- Use in Review
- Use in PayPal PayflowPro payment form
- Use invisible ReCaptcha in newsletter Requires an Invisible ReCaptcha v2 or v3 key. If enabled, a badge will be displayed in every page.
- Use in Send To Friend
- When complete, click Save Config.