Code Monkey home page Code Monkey logo

Comments (6)

codekoala avatar codekoala commented on June 11, 2024

This is related to issue #6 dealing with distributed attacks. Not sure what the best approach would be for resolving this behavior while still handling the distributed attacks.

from django-axes.

camilonova avatar camilonova commented on June 11, 2024

Any ideas? cc @aclark4life

from django-axes.

aclark4life avatar aclark4life commented on June 11, 2024

@camilonova I get all the emails anyway πŸ˜„

from django-axes.

camilonova avatar camilonova commented on June 11, 2024

Should we leave this open until a solution appears?

from django-axes.

aclark4life avatar aclark4life commented on June 11, 2024

@Eggplant77 Can you send a pull request?

from django-axes.

marianov avatar marianov commented on June 11, 2024

I think there is a problem with the changes added in Issue #6

That patch prevents distributed attacks this way: there is a failed attempts counter for every IP, and there is a failures counter for every user. To avoid locking out legitimate users every time a valid login is completed, it stores (ip, user, true) in the DB.

In [108]: [ "%s %s %s %s" % (at.attempt_time, at.ip_address, at.username, at.failures) for at in models.AccessAttempt.objects.all() ]
Out[108]:
[u'2014-05-23 16:06:03.964579 10.10.10.3 usuario 2',
u'2014-05-23 16:00:43.780034 None usuario 3', <--- there is no way I can now login from 192.168.0.50
u'2014-05-23 16:00:43.608362 192.168.0.104 None 3']

The problem is this: if I am a legitimate user connecting from an IP i've never used before I get locket out. In other words: after a lockout of my user in ANY ip, I can then only login from known IP addresses. That creates a DOS in many internet apps.

from django-axes.

Related Issues (20)

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.