So I followed the official guide on how to enable reCaptcha protection:
This is my 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
Now, when I try to trigger the reCaptcha at wp-login page, it loads normal (no 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. With the setting "Verify the origin of reCAPTCHA solutions" disabled.
It's 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. For some reason, the httpd-lsrecaptcha.conf file got reverted to default at some point. I guess when I rewrote conts?
Any help would be appreciated.
This is my my file: /usr/local/lsws/conf/httpd-lsrecaptcha.conf
Apache config:
lsrecaptcha {
enabled 1
siteKey xxx
secretKey xxx
type 2
maxTries 3
allowedRobotHits 3
botWhiteList {
# google.com
}
regConnLimit 15000
sslConnLimit 10000
}
Apache config:
RewriteCond %{REQUEST_URI} ^/wp-login\.php$
RewriteRule .* - [E=verifycaptcha: drop]
Code:
cd /usr/local/directadmin/custombuild
./build rewrite_confs
I'm using recaptcha v2, the Checkbox type. With the setting "Verify the origin of reCAPTCHA solutions" disabled.
It's 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. For some reason, the httpd-lsrecaptcha.conf file got reverted to default at some point. I guess when I rewrote conts?
Any help would be appreciated.