Block GET Requests to specific files

dannet

Member
May 7, 2006
9
0
151
Buenos Aires, Argentina
cPanel Access Level
Root Administrator
Hello, I am getting a lot of GET requests from different IPs to four nonexistent PHP files on my server. Is there any way to block the requests to avoid the resources use of apache that these requests are generating?

I have installed mod_security but Im not sure about how the block rule should be.

The requests are going to images/log.php, images/log2.php, images/log3.php and images/logi.php of one of the sites hosted on the server, is there any way to block there requests for a specific domain or path?

Thanks in advance
Daniel