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
Block IP if trying to access specific url?
Re: Block IP if trying to access specific url?
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
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