Page 1 of 1
Block IP if trying to access specific url?
Posted: 12 Apr 2020, 10:24
by drizion
Hello is it possible to block an IP at CSF level if that IP tries to access a url pattern like "anydomain.com/includes/folder/restricted.php"
thank you in advance
Re: Block IP if trying to access specific url?
Posted: 21 Apr 2020, 14:44
by Sergio
You can do this with ModSecurity.
If you have the COMMODO rules that Chirpy installs in our servers when CSF is installed, do the following:
1. Go to /etc/apache2/conf.d/modsec_vendor_configs/comodo_apache/
2. Modify the file userdata_bl_URLs adding in it the URL that you want to block. (Follow the instructions inside that file).
For more info, see:
https://forums.comodo.com/free-modsecur ... 423.0.html
Sergio