Skip to main content

How to Disable LiteSpeed reCAPTCHA Bot Protection on a Website - Knowledgebase / Website Hosting - Micron21 Knowledge Hub

How to Disable LiteSpeed reCAPTCHA Bot Protection on a Website

Authors list

How to Disable reCAPTCHA Bot Protection on LiteSpeed Web Server


LiteSpeed Web Server's built-in reCAPTCHA protection can sometimes interfere with legitimate user activity, automated tools, or specific site functionality. Site owners can easily disable or bypass this protection for their website (or specific directories) by adding a simple directive to their .htaccess file.

This step-by-step guide shows you exactly how to turn off reCAPTCHA verification using .htaccess.


Step 1: Locate Your .htaccess File

  1. Log in to your hosting control panel (cPanel, Plesk, etc.) or connect via FTP using FileZilla or similar.

  2. Navigate to your website's root directory (usually public_html). Look for the .htaccess file.

If it doesn't exist, you can create a new one.

Tip: The .htaccess file is hidden by default. Make sure your file manager or FTP client is set to show hidden files.


Step 2: Adding the reCAPTCHA Disable Code

  1. Open the .htaccess file in a text editor.

Add the following code at the very top of the file (or in the section where you manage LiteSpeed directives):

<IfModule LiteSpeed>

RewriteRule .* - [E=verifycaptcha:off]

</IfModule>

Important: This will disable reCAPTCHA protection for the entire directory and all subdirectories where this .htaccess file is located.


Step 3: Save and Apply Changes

  1. Save the changes made to the .htaccess file

  2. Clear your browser cache.

  3. Test your website


Helpful Unhelpful