Giter Club home page Giter Club logo

express-bouncer's People

Contributors

dkrutsko avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

express-bouncer's Issues

Add getRemediationForUsername() method

I implemented the CrowdSec bouncer in MeshCentral using this code and it's wonderful. I did notice that you can make a decision based on a username instead of an IP address, but this bouncer code does not have a getRemediationForUsername() method. Could it be added?

If added, I will implement it right away in MeshCentral.

Thanks,
Ylian

Auto reset max attempt after some specific minutes or hour

Let's suppose user(userid or ip) can hit a route with 5 valid or invalid attempt. Minimum 25 sec wait & max 25 minute wait. Now i want that after 25 minutes express-bouncer auto reset for this user. so that user can now again hit 5 times on same route. Hope you understand my question. please reply

Express bouncer in different parts of the code

When I tried to use express-bouncer in two different files I found that the module creates a new instance of the module.

I resolve the issue by my own, Do you want me to share the code?

How can I do this ?

setInterval not cleaned up

When testing with my express app, open handles are detected due to express-bouncer using setInterval with no way to clean it up.

A close method would resolve the issue.

Should use HTTP 429 instead of 403

Hello! Awesome library. There's a status code specifically for this type of error. I do understand why 403 is logical as well and I feel like if someone is brute forcing you may not want to give them any more info. Also, might remove additional info to tip people off into how your bounce scheme is functioning to prevent them from changing IPs.

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.