Litespeed and joomla protection conf

sahostking

Verified User
Joined
Jan 29, 2021
Messages
110
Location
South Africa
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?
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
 
Back
Top