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
Log in to your hosting control panel (cPanel, Plesk, etc.) or connect via FTP using FileZilla or similar.
Navigate to your website's root directory (usually public_html). Look for the
.htaccessfile.
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
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
Save the changes made to the
.htaccessfileClear your browser cache.
Test your website