How to Configure Admin Captcha in Magento 2

how to configure admin security and captcha in magento 2

As you might know, CAPTCHA (Completely Automated Public Turing test to tell Computers and Human Apart) was created to guarantee that a person is accessing your site instead of a bot/computer.

In this tutorial, we will show you how to configure admin CAPTCHA in Magento 2.

Step 1: Go to Configuration

Go to the admin panel, navigate to STORES and choose Configuration (under Settings).

(Admin Panel => STORES => Configuration)

how to configure admin captcha in magento 2

Step 2: Open the Admin settings

Expand the ADVANCED field (on the left) and select Admin in the drop-down.

configure admin captcha magento 2

Step 3: Set up CAPTCHA options

Follow the steps below to configure CAPTCHA settings.

  1. Enable CAPTCHA in admin by selecting Yes.
  2. Choose the Font used for CAPTCHA. In case you want to use another font, make sure that that font resides in the same directory as your Magento and is declared in the CAPTCHA’s config.xml file.
  3. Opt for a form using the CAPTCHA (Admin Login or Admin Forgot Password).
  4. Choose a displaying mode as one of the following options:
    – Always: Submitting Captcha is compulsory to log in to the admin all the time
    – After a number of attempts to log in: The admin only is required to fill in the Captcha when he/she fails to log in a certain number of times. If choosing this option, you must enter the Number of Unsuccessful Attempts to log in.
  5. Set the CAPTCHA Timeouts (in “minute”) – after this time, the CAPTCHA will expire and the user must reload the page and re-login.
  6. List all of the symbols allowed to appear in the CAPTCHA (including letters and numbers).
  7. Set Case Sensitive to Yes if you want the user to enter exact characters as shown. Save the config to complete settings.
admin captcha magento 2

We have shown you the steps to configure admin security and admin CAPTCHA as well in Magento 2. If you have any problems when following this tutorial, feel free to ask us by leaving a comment below. See you in the next tutorials!

Leave a Reply

Your email address will not be published. Required fields are marked *