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

Containerized data analytics at scale, with Minio and Pachyderm

Setup and CRUD Operations in MongoDB

When it can be a good idea to work without branches and push constantly to master ?

Trunk based development

Iplot Scatter

Scatter

[Solved] jupyter-lab: command not found on Ubuntu

Setting up CDK projects based on Typescript to implement a step function with AWS Step Functions.

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

Deploy Django using Postgres, Nginx in digital ocean ubuntu droplet

Deploy Django using Postgres, Nginx in digital ocean

GitLab Django Cloud Run — How To Properly Stand Back and Relax

Django And Flutter — A Step by Step Tutorial for a Boilerplate Application

Get start Django project, and its files and directories structure