by michaelbuckbee · 13y ago · 0 comments
So it's something that's good for Heroku apps?
So if your user authentication code was also a Rack middleware, and you inserted Rack::Attack after it in the middleware stack, you could rate limit based on user account as well as IP address. That would be harder to do at the firewall or web server level.
This isn't for preventing DOS attacks (for which you'd want to completely avoid hitting application code), it's just for preventing unauthorised or excessive usage.
It's a good way when you don't have privilege access to the server OR skills to do it manually on Nginx etc.