[contact-form-7 id="24078" title="Feedback EN"]

Featured templates

Magento. How to enable captcha

This tutorial shows how to enable captcha in Magento.

Magento. How to enable captcha

Captcha can be enabled via Magento Dashboard. You can use it to protect user login form to reach admin panel. Also, it is used for the contact forms to avoid spam. Let’s check how to enable captcha for them both.

CAPTCHA for the Dashboard Login form. The following steps should be performed to have it activated:

  1. Navigate to System> Configuration > Advanced> Admin section in the Dashboard.

  2. Select ‘CAPTCHA’ from the list of available items. Select YES for ‘Enable CAPTCHA in Admin’ to get the list of available options to manage. Using those appearance and functionality of CAPTCHA can be controlled:

    • Font: allows selecting the font family to be used for captcha.

    • Forms: select which form you’d like to protect with captcha. This may be Admin login, Admin forgot password, or both.

    • Displaying Mode: specify if captcha appears constantly or after several unsuccessful login attempts.

    • CAPTCHA Timeout: period of time (in minutes) for the captcha to be valid.

    • Number of Symbols: specify the range of min and max symbols for the captcha.

    • Symbols Used in CAPTCHA: set the list of characters (letters and numbers only) that can be used for captcha.

    • Case Sensitive: select if you’d like to have captcha case sensitive or not:


  3. Use ‘Save Config’ button to update the changes.

Captcha shows up in the login page now according to the settings above.

CAPTCHA for the Contact form. In order to protect contact form with captcha, additional extension should be installed and configured. Steps to perform are the following:

  1. Navigate to the System > Magento Connect > Magento Connect Manager. A new extension for the captcha will be installed through this section. Magento may prompt you to log in again as administrator.

  2. Open Contacts Form Captcha page. You have to be a registered user to get the extension. Use your details at Magento official site to log in at first. Perform the following then:

    1. Click ‘Install Now’ button.

    2. Select ‘Magento Connect 2.0’ version and agree to the terms of use.

    3. Next, you have to press ‘Get Extension Key’ button to get the URL for extension. Copy the key you’ll get:


  3. Get back to the Magento Connect Manager in the Dashboard. Open the ‘Install New Extension’ tab. Paste the selected key to the ‘Paste extension key to install’ field and click ‘Install’ button to run.

  4. After Magento Connect downloads the extension, click ‘Proceed’ to start the installation of this extension.

  5. Once installation is finished, click ‘Refresh’ button. ‘contactsformcaptcha’ should now appear in the list of extensions under Manage Existing Extensions. This means it has been successfully installed to your store.

  6. Return to the admin panel of the store. Navigate to System> Configuration> General> Contacts> Contacts Form Captcha. Here you can enable the captcha for contact form and edit the settings:

    1. Click YES for ‘Enable Captcha’ first of all;

    2. Public Key: type Google reCAPTCHA site key here;

    3. Private Key: type your Google reCAPTCHA secret key here;

    4. reCaptcha Theme: select the layout interface here for the captcha form;

    5. ReCaptcha Language: choose the language for the captcha interface:


    NOTE: sign up for a reCAPTCHA account to get the valid keys.

  7. Use ‘Save Config’ button to update the changes and check the contact page of the site. Captcha has been successfully applied to it.

Now you know how to enable captcha for the login and contact forms in Magento.

Feel free to check the detailed video tutorial below:

Magento. How to enable captcha