sahostking
Verified User
Hi
We used to use cPAnel and with that we could easily following the tutorial for joomla protection which worked well via this link:
But how do we implement it on DirectAdmin?
We used to use cPAnel and with that we could easily following the tutorial for joomla protection which worked well via this link:
reCAPTCHA | LSWS | LiteSpeed Documentation
reCAPTCHA is available as a method of defense against DDoS attacks in LiteSpeed Web Server since v5.4RC1. It can be enabled globally at the server level, and for each URL.
docs.litespeedtech.com
But how do we implement it on DirectAdmin?
Code:
Enable reCAPTCHA Protection for any URL¶
You can enable reCAPTCHA for a specific URL. For example, you might want to protect the admin area (/administrator/) for all Joomla sites on the server.
Example
In cPanel, create /etc/apache2/conf.d/userdata/joomlaprotection.conf with the following content:
<IfModule LiteSpeed>
RewriteRule /administrator/ - [E=verifycaptcha:deny]
</IfModule>
Apply to all cPanel virtual hosts and restart LiteSpeed:
/usr/local/cpanel/scripts/rebuildhttpdconf
service lsws restart