Need help disabling LiteSpeed reCAPTCHA (LsRecaptcha) for a cPanel account

#1
Hello,

I am trying to find a solution to disable the LiteSpeed reCAPTCHA protection for one or more specific cPanel accounts.

I have already tried two different methods, but the reCAPTCHA prompt is still active when accessing the domains.



Method 1: Apache Include Files


Following the cPanel documentation https://docs.cpanel.net/ea4/apache/.../#apply-to-all-virtual-hosts-that-a-user-owns on modifying virtual hosts, I added the code below to both:

  • /etc/apache2/conf.d/userdata/ssl/2_4/user/includename.conf
  • /etc/apache2/conf.d/userdata/std/2_4/user/includename.conf
Code used:

Apache config:
<IfModule LiteSpeed>
    LsRecaptcha 0
</IfModule>
Result: This did not disable the reCAPTCHA.



Method 2: .htaccess File


I also tried adding the following code directly to the account's .htaccess file:

Code used:
Apache config:
RewriteEngine On
LsRecaptcha 0
RewriteRule .* - [E=verifycaptcha:drop]
Result: This also failed, and the reCAPTCHA is still appearing.

Could anyone please advise on the correct procedure to disable LsRecaptcha for a specific cPanel account?

Any help would be greatly appreciated.
 
Top