Block IPs if they access a resource

Posted by Victor Oliva on Server Fault See other posts from Server Fault or by Victor Oliva
Published on 2012-11-07T09:46:28Z Indexed on 2012/11/07 11:06 UTC
Read the original article Hit count: 257

Filed under:
|
|
|

I own a server that it's costantly being attacked by scripts (that try to access to phpMyAdmin's setup file's and stuff like this). I've heard that many people get this kinds of attacks, but I'm starting to worry since they are getting more common (last month I got 2 attacks, and on november 7th there are 3 attempts already (1st, 4th and 6th of nov).

I'm not really concerned about it, since I don't have any database. All the info i have on that server is absolutely public, but I'm worried about that attacking-rate increase.

So I thought I could -temporarily- block the IPs that come from those attackers, or something that could make my server ignore requests that ask for phpMyAdmin, pma, xamp, etc.

Is there something like that? my server is Linux+Apache+Php

© Server Fault or respective owner

Related posts about apache2

Related posts about iptables