where to configure FilesMatch on Litessped ?

#1
Hey, Im using sucuri firewall and I should free some IPs and Deny the others... they gave me 2 options (apache and gnix, but dont have example how to add in litespeed, so I dont know how to implement it here)

Apache2 we can use:
Code:
<FilesMatch ".*">
    Order deny,allow
    Deny from all
    Allow from 111.11.134.0/23
    Allow from 111.11.228.0/22
    Allow from 2b12:fe81::/29
    Allow from 11.118.200.0/22
    Allow from 218.101.0.0/22
</FilesMatch>
nginx we can use:
Code:
location / {
    allow 111.11.134.0/23;
    allow 111.11.228.0/22;
    allow 2b12:fe81::/29;
    allow 11.118.200.0/22;
    allow 218.101.0.0/22;
    deny all;
    # Existing NGINX rules
}

and on litespeed, where I should add that? thanks <3

@David
Cold-Egg
 
#5
Top