Hostking
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:
docs.litespeedtech.com
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:
CAPTCHA | LiteSpeed Web Server | LiteSpeed Documentation
CAPTCHA is available as a method of defense against DDoS attacks in LiteSpeed Web Server. It can be enabled globally at the server level, and for each URL.
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