failed to enable lsrecaptcha with htaccess / rewrite rules

donko

New Member
#1
i follow this guide https://openlitespeed.org/kb/recaptcha-with-openlitespeed/ but is not working, url never shows recatpcha

i'm using directadmin with openlitespeed 1.6.18 so my settings are these:

first i tried add to custombuild\custom\openlitespeed\conf\httpd-lsrecaptcha.conf

Code:
lsrecaptcha  {
  enabled                 1
  siteKey                 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
  secretKey               XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
  type                    2
  maxTries                2
  allowedRobotHits        3
  botWhiteList  {

  }
  regConnLimit            30000
  sslConnLimit            30000
}
then i added to .htaccess on wordpress site to trigger wp-login.php

Code:
RewriteEngine On
RewriteCond %{REQUEST_URI} ^/wp-login.php$
RewriteRule .* - [E=verifycaptcha]
not working, so i tried changing

Code:
 enabled                 0
and still not working... don't know what i'm doing wrong... i read litespeed doesn't trigger IP if is marked trusted like: 127.0.0.1T, my sites are behind cloudflare so i have their IP's added as trusted to get the real ip of my users https://openlitespeed.org/kb/show-real-visitor-ip-instead-of-cloudflare-ips/ , does this could be the issue?
 
Last edited:
Top