So I followed the official guide on how to enable reCaptcha protection.
This is my file: /usr/local/lsws/conf/httpd-lsrecaptcha.conf
I then added a custom rule to all Virtual hosts using the template at: /usr/local/directadmin/data/templates/custom/cust_openlitespeed.CUSTOM.5.pre
Then rewrote confs
Which reverted the changes on httpd-lsrecaptcha.conf so I had to go back and edit it.
Anyway, now when I try to trigger the reCaptcha at wp-login page, it loads without recaptcha. I even tried using a Tor browser, and one site's Jetpack protection got triggered, but not the Recaptcha.
I'm using recaptcha v2, the Checkbox type (which I confirmed is type 1). With the setting "Verify the origin of reCAPTCHA solutions" disabled.
It's obviously a Directadmin server, with more than a few sites. I'm using Cloudflare on most sites, but I also tested on sites without CF and got the same result.
I tried setting the regConnLimit and sslConnLimit to "1" and turns out, recaptcha is working, so my only issue is about the rewrite rule on the Virtual hosts.
I tried it this way, and got en error:
Any help would be appreciated.
This is my file: /usr/local/lsws/conf/httpd-lsrecaptcha.conf
Apache config:
lsrecaptcha {
enabled 1
siteKey xxx
secretKey xxx
type 1
maxTries 3
allowedRobotHits 3
botWhiteList {
# google.com
}
regConnLimit 15000
sslConnLimit 10000
}
Apache config:
RewriteCond %{REQUEST_URI} ^/wp-login\.php$
RewriteRule .* - [E=verifycaptcha: drop]
Then rewrote confs
Code:
cd /usr/local/directadmin/custombuild
./build rewrite_confs
Anyway, now when I try to trigger the reCaptcha at wp-login page, it loads without recaptcha. I even tried using a Tor browser, and one site's Jetpack protection got triggered, but not the Recaptcha.
I'm using recaptcha v2, the Checkbox type (which I confirmed is type 1). With the setting "Verify the origin of reCAPTCHA solutions" disabled.
It's obviously a Directadmin server, with more than a few sites. I'm using Cloudflare on most sites, but I also tested on sites without CF and got the same result.
I tried setting the regConnLimit and sslConnLimit to "1" and turns out, recaptcha is working, so my only issue is about the rewrite rule on the Virtual hosts.
I tried it this way, and got en error:
Apache config:
RewriteRule ^/wp-login\.php$ - [E=verifycaptcha: drop]
Any help would be appreciated.