How To Enable CAPTCHA For The Storefront In Magento 2

Enable captcha for create user, forgot password, … activities of customers at the storefront. Avoid spam and robots affecting store operations. In this post, I will guide you How To Enable CAPTCHA For The Storefront In Magento 2.

We recommend that you enable CAPTCHA to protect your store from a ton of fake malicious users and spam mails that will cause your store to run into trouble in the future.

You can see fields that require CAPTCHA entry at a storefront like

  • Create User Form
Create User Form
  • Forgot Password Form
Forgot Password Form

You can completely turn it on in the backend with the following specific steps.

Steps To Enable CAPTCHA For The Storefront

Step 1: Login to Admin Panel.

Step 2: Choose STORES -> Settings -> Configuration.

Step 3: Select CUSTOMERS -> Customer Configuration in the left panel.

Select CUSTOMERS -> Customer Configuration in the left panel

Step 4: Expand the CAPTCHA section.

Expand the CAPTCHA section

Step 5: Set Enable CAPTCHA in Admin to Yes. Then complete the remaining options as follows:

  • In the Font field, select the name of the Font to be displayed for the CAPTCHA symbols (default: LinLibertine).
  • In the Forms field, select one of the following forms to use a CAPTCHA.
    • Applying coupon code.
    • Checkout/Placing Order.
    • Create user.
    • Login.
    • Forgot password.
    • Contact Us.
    • Change password.
    • Send To Friend Form.
    • Payflow Pro.
    • Share Wishlist Form.
Select one of the following forms to use a CAPTCHA
  • In the Displaying Mode field, select one of the following:Always — CAPTCHA is always required to log in to the Admin.
  • After number of attempts to login — This option applies only to the Admin Login form. When selected, the Number of Unsuccessful Attempts to Login field appears.
  • In the Number of Unsuccessful Attempts to Login field, enter the number of times the administrator can try to log in before the CAPTCHA appears. If set to 0, CAPTCHA is always required.
  • In the CAPTCHA Timeout (minutes) field, enter the number of minutes before the CAPTCHA expires. When the CAPTCHA expires, the administrator must reload the page.
  • In the Number of Symbols field, enter the range number to appear in the CAPTCHA. The maximum is 8 symbols.
  • In the Symbols Used in CAPTCHA field, enter the letters (a-z and A-Z) and numbers (0-9) that you want to appear randomly in the CAPTCHA. Symbols that are hard to distinguish from other symbols, such as i, l, or 1, are not included in the default set of CAPTCHA symbols.
  • Set Case Sensitive to Yes if you want to require administrators to enter the characters in upper- or lowercase exactly as shown in the CAPTCHA.

Step 7: Click to Save Config, and refresh cache.

You can read more useful articles like How To Enable CAPTCHA For The Admin In Magento 2.

Follow us for the more helpful posts!

We hope this is a useful post for you.

Thank you for reading!

5 2 votes
Article Rating

Aaron LX

Aaron is a passionate writer, crazy about shopping, eCommerce and trends. Besides his outstanding research skills and a positive mind, Aaron eagerly shares his experience with the readers.

Leave a Reply or put your Question here

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x