Disable Captcha on admin login page from database or codebase or CLI in magento?

Disable Captcha on admin login page from database or codebase or CLI in magento?

July 30, 2026 · Illustrated author avatarBy Stefan Bogdanescu
Disable Captcha on admin login page from database or codebase or CLI in magento?

Temporarily Disabling Captcha on Magento Administration Panel

If you’re facing issues accessing your Magento administration panel due to a broken captcha image (as described in the question), you can temporarily disable it from either the database or the codebase for quick access. Here are step-by-step solutions for both methods, focusing on Magento Enterprise Edition v1.13.0.2.

Disabling Captcha via Database

Step 1: Connect to your MySQL database

Open a MySQL client and connect to your Magento installation’s database using the root user or appropriate credentials.

Step 2: Modify core_config_data table

Execute the following SQL query to find the configuration path related to captcha:

SELECT * FROM `core_config_data` WHERE `path` LIKE '%captcha%';

You’ll see a result like this:

config_idscopescope_codescope_namepathvalue
34sitedefaultDefault Configweb/captcha enabled1

Step 3: Disable Captcha

To temporarily disable captcha, update the value field from ‘1’ to ‘0’. Run this query:

UPDATE `core_config_data`
SET `value` = '0'
WHERE `path` = 'web/captcha/enabled';

After updating this value, try accessing your administration panel again. The captcha should now be disabled.

Disabling Captcha via Codebase

Step 1: Locate the Captcha XML file

Navigate to your Magento installation directory and find the following file:

app/code/core/Mage/Adminhtml/etc/adminhtml.xml

Step 2: Comment out the captcha block

Open the adminhtml.xml file in a text editor. Look for the <captcha> block inside the <layout> element, around line 390.

<captcha>
    <reference name="head">
        <!-- Captcha CSS -->
    </reference>
    <reference name="root">
        <!-- Captcha JS and Image -->
    </reference>
</captcha>

Comment out this entire block by adding the following symbol (<!--) at the beginning of each line and ending with -->:

<!--
<captcha>
    <reference name="head">
        <!-- Captcha CSS -->
    </reference>
    <reference name="root">
        <!-- Captcha JS and Image -->
    </reference>
</captcha>
-->

Step 3: Save the file

Save your changes to the adminhtml.xml file. Then, try accessing your administration panel again.

Disabling Captcha via Command Line Interface (CLI)

For Magento versions 1.9+ with the command line interface installed, you can use the following command to disable captcha temporarily:

php magento config:set web/captcha/enabled 0 --scope=default

This command sets the web/captcha/enabled configuration to ‘0’ in the default scope.

Conclusion

In both methods—database or codebase—captcha is successfully disabled, allowing you immediate access to your Magento administration panel. Keep in mind that these are temporary solutions and should be reversed once you’ve finished your ten minutes of work.

For more comprehensive guides on Magento configuration and customization, visit Laravel Company.

Database Admin Configuration Errors

Our network