Giter VIP home page Giter VIP logo

alexkuhl / django-failedloginblocker Goto Github PK

View Code? Open in Web Editor NEW
4.0 2.0 3.0 5 KB

A project that uses overrides the Django authentication function to track failed login attempts on a per-user basis. Will block user access after a specified number of failed logins is reached. Note that I wrote this for Django 1.3, so probably horribly outdated!

License: BSD 3-Clause "New" or "Revised" License

Python 100.00%

django-failedloginblocker's Introduction

NOTE: This repo is ancient and written for Django 1.3 so odds are it is
not useful to anyone at this point.

A project that uses overrides the Django authentication function to track
failed login attempts on a per-user basis.  Code is based on BruteBuster
(http://code.google.com/p/django-brutebuster/) but is simplified because of
the dropped requirement of tracking IP addresses.  Django-Axes is another
source of inspiration (http://code.google.com/p/django-axes/).

Installation
  1. Add failedloginblocker to your INSTALLED_APPS list in settings.py
  2. Add failedloginblocker.middleware.FailedLoginBlockerMiddleware to
    MIDDLEWARE_CLASSES in settings.py
  3. Run 'python manage.py syncdb'
  4. Restart your web server, if necessary.
 
Settings (set in settings.py if you want to override the defaults)
  FLB_MAX_FAILURES - Number of failures to allow before blocking logins.
      Default is set to 5.
  FLB_BLOCK_INTERVAL - The interval from the last failed attempt to determine 
      whether the current login attempt is to count as a failure.  
      By default, decorators.py clears the failed logins if this interval 
      has expired.
      Default is set to 1440 minutes (or 1 day). 
  
 

django-failedloginblocker's People

Contributors

alexkuhl avatar

Stargazers

Karthic Raghupathi avatar  avatar  avatar Drew Volpe avatar

Watchers

 avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.