Locking Users Out After Invalid Login Attempts: Django & a Cache

What & Why

We’ve all done it. Forgotten our passwords and been locked out of an account. It’s irritating when it’s actually you, but it does serve a purpose — namely it will significantly slow down any malicious actors trying to use brute force attacks to access accounts on your system. So let’s jump in!

In order to do this we need to keep track of a few things. We’ll talk about the specifics of how we can store this information in the cache later, but for now, let’s assume we’re tracking…




Senior Software Engineer | www.adriennedomingus.com

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Hands-On with REDIS | Part 1

Weekly update from PointPay (January 24— January 28, 2022)

Claritask, the latest addition to the MyDev arsenal

A Brief History of No-Code Software and Its Future

CSS: Day 68

Day 68 in yellow color

Hacking — Best OF Reverse Engineering — Part 16


CSS Interview Questions

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Adrienne Domingus

Adrienne Domingus

Senior Software Engineer | www.adriennedomingus.com

More from Medium

_mysql is not defined, Django on Mac M1 with MySQL DB

Upload Files Directly To S3 In React Using Pre-signed Url From Python.

Build a Simple Currency Exchange Service with Django

Hosting Django on AWS Beanstalk AL2

Banner for Python Django