Temp IP Block If repeated requests

Post Reply
smilesinblues
Junior Member
Posts: 1
Joined: 18 Jun 2016, 15:27

Temp IP Block If repeated requests

Post by smilesinblues »

Hi,

Apologies if this has already been covered before, but my initial search in the forum was not very helpful.

What I am trying to achieve on my cpanel server is, If a user from an IP is making multiple requests to any URL on our website, I want that IP to be blocked for sometime. We have no clue how can this be achieved. Any help will be appreciated.

So if an (IP) is making (n) requests to a (URL) then I want the (IP) to be blocked for (x) mins.

Regards,
Jaunty
Sergio
Junior Member
Posts: 1715
Joined: 12 Dec 2006, 14:56

Re: Temp IP Block If repeated requests

Post by Sergio »

Hi Jaunty.
The best way to accomplish this is to create a REGEX rule that CSF could use to do what you want.

See the topic viewtopic.php?f=6&t=7517 to get an idea of what you can do with a REGEX file.

Sergio
Post Reply