Magento Open Source 2.1.x

CAPTCHA

A CAPTCHA is a visual device that ensures that a human being, rather than a computer, is interacting with the site. CAPTCHA is an acronym for “Completely Automated Public Turing test to tell Computers and Humans Apart,” and can be used for both AdminThe password-protected back office of your store where orders, catalog, content, and configurations are managed. and customer account logins.

You can reload the CAPTCHA as many times as is necessary by clicking the Reload icon in the upper-right corner of the image. The CAPTCHA is fully configurable and can be set appear every time, or only after a number of failed login attempts.


Customer Login with CAPTCHA
Admin CAPTCHA

Admin Sign In with CAPTCHA

To configure an Admin CAPTCHA:

On the Admin sidebar, tap Stores. Then under Settings, choose Configuration.

In the panel on the left, under Advanced, choose Admin.

In the upper-right corner, set Store View to “Default.”

Expand the CAPTCHA section, and do the following:


Admin CAPTCHA Configuration

Set Enable CAPTCHA in Admin to “Yes.”

Enter the name of the Font to be used for the CAPTCHA symbols. Default font: LinLibertine

To add your own font, the font file must reside in the same directory as your Magento instance, and be declared in the config.xml file of the Captcha module at: app/code/Magento/Captcha/etc

Select the Forms where the CAPTCHA is to be used:

  • Admin Login
  • Admin Forgot Password

Set Displaying Mode to one of the following:

  • Always

    CAPTCHA is always required to log in the Admin.

    After number of attempts to login

    When selected displays the Number of Unsuccessful Attempts to Login field. Enter the number of login attempts allowed. A value of 0 (zero) is similar to setting Displaying Mode to Always. This option does not cover the Forgot Password form. If CAPTCHA is enabled and set to be appear on this form, then it is always included on the form.

Enter the Number of Unsuccessful Attempts to Login before the CAPTCHA appears. If set to zero, the CAPTCHA is always used.

In the CAPTCHA Timeout (minutes) field, enter the number of minutes before the CAPTCHA expires. When the CAPTCHA expires, the user must reload the page.

Enter the Number of Symbols used in the CAPTCHA, up to eight. For a variable number of symbols that changes with each CAPTCHA, enter a range, such as 5-8.

In the Symbols Used in CAPTCHA field, specify the symbols that can be used in the CAPTCHA. Only letters (a-z and A-Z) and numbers (0-9) are allowed. The default set of characters does not include similar symbols such as I or 1. For best results, use symbols that users can readily identify.

To require that users enter the characters exactly as shown set Case Sensitive to “Yes.”

When complete, tap  Save Config….

Customer CAPTCHA
  • Create User
  • Login
  • Forgot Password
  • Checkout as Guest
  • Register During Checkout
  • Contact Us

Customer CAPTCHA Configuration

To configure a Storefront CAPTCHA:

On the Admin sidebar, tap Stores. Then under Settings, choose Configuration.

In the panel on the left, under Customers, choose Customer Configuration.

Expand the CAPTCHA section, and do the following:

Set Enable CAPTCHA on Frontend to “Yes.”

Enter the name of the Font to be used for the CAPTCHA symbols.

To add your own font, the font file must reside in the same directory as your Magento instance, and be declared in the config.xml file of the CAPTCHA module.

Choose one of the following Forms where CAPTCHA is to be used.

  • Create User
  • Login
  • Forgot Password
  • Checkout as Guest
  • Register during Checkout

Set Displaying Mode to one of the following:

  • Always

    CAPTCHA is always required to access the selected form(s).

    After number of attempts to login

    Enter the number of login attempts before the CAPTCHA appears. A value of 0 (zero) is similar to “Always.” When selected, the number of unsuccessful login attempts appears.

    This option does not apply to the Forgot Password form, which always display the CAPTCHA, if enabled,

Enter the Number of Unsuccessful Attempts to Login before the CAPTCHA appears. If set to zero, the CAPTCHA is always used.

In the CAPTCHA Timeout (minutes) field, enter the number of minutes before the CAPTCHA expires. When the CAPTCHA expires, the user must reload the page to generate a new CAPTCHA.

Enter the Number of Symbols in the CAPTCHA, up to eight. For a variable number of symbols that change with each CAPTCHA, enter a range such as 5-8.

In the Symbols Used in CAPTCHA field, specify the symbols that can be used in the CAPTCHA. Only letters (a-z and A-Z) and numbers (0-9) are allowed. The default set of characters does not include similar symbols such as I or 1. For best results, use symbols that users can readily identify.

To require that the user enter the upper-and lowercase characters exactly as shown set Case Sensitive to “Yes.”

When complete, tap  Save Config .