I want to block flooding requests by session or IP.
This is my requirement. If any user send 1000 requests within 1 hour, I want to block that request. I don't know it's done by session or IP. Please help me to do this. Please provide script if you have. thank you.