Rack middleware for blocking & throttling abusive requests
Protect your Rails and Rack apps from bad clients. Rack::Attack lets you easily decide when to allow, block and throttle based on properties of the request.
See the Backing & Hacking blog post introducing Rack::Attack.
.