#183 Rails 7.2 Rate limiting for Devise - Guard your app from spam and bots!

11/08/2024
devise security

πŸ”’ Secure your app from password-guessing attacks, spam, and abuse by rate-limiting your sign-up and sign-in pages.

I always rely on the wonderful rack-attack gem for this, capping requests per IP within a set timeframe.

Now Rails 7.2 adds native rate limiting out of the box!

Let's add rate limiting to your Devise Sign Up and Sign In pages & secure your app! πŸ›‘οΈ

Episode source code: https://github.com/corsego/183-rails-native-rate-limiting/commit/54b962dfa0a7e6407f99e4b3251e61edd5df964e
Based on this blogpost: https://blog.corsego.com/rails-rate-limiting

0
Join the conversation
Sign in to access PRO lessons, access private repos, leave comments, create watch lists.
We collect your email address, name and username to create your account. We do not share your email address with anyone else.