Page 1 of 1

Temp IP Block If repeated requests

Posted: 18 Jun 2016, 15:40
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

Re: Temp IP Block If repeated requests

Posted: 19 Jun 2016, 06:12
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