Code Monkey home page Code Monkey logo

Comments (4)

julienloizelet avatar julienloizelet commented on August 16, 2024 1

Hello @AlteredCoder,

When i look in https://github.com/crowdsecurity/cs-php-bouncer/blob/main/settings.example.php , I don't see any "flex mode" ? Maybe it is a Wordpress bouncer feature only ?

As mentioned by mobula9, the config is "max_remediation_level" to cap all remediations to a specified level (captcha in our example).

Indeed, this config is not explicitly written in the example, but I guess we could add it :

'max_remediation_level' => 'ban',

You should try with 'max_remediation_level' => 'captcha' and all "ban" remediation will be capped to "captcha".

from php-cs-bouncer.

mobula9 avatar mobula9 commented on August 16, 2024

@AlteredCoder

I don't understand why do you want to change the priorities order, do you have a use case for that?

By example, If you want never ban a user and to ask for a captcha instead, you can use the "flex mode" (the config is "max_remediation_level") to cap all remediations to a specified level (captcha in our example)

from php-cs-bouncer.

AlteredCoder avatar AlteredCoder commented on August 16, 2024

Hello,

I don't understand why do you want to change the priorities order, do you have a use case for that?

CrowdSec can trigger multiple scenarios for a same IP. According to your profile configuration, one scenario can lead to a decision with a ban action whereas another decision can lead to a decisions with a captcha action. In this case, i prefer to apply a captcha instead of a ban.

By example, If you want never ban a user and to ask for a captcha instead, you can use the "flex mode" (the config is "max_remediation_level") to cap all remediations to a specified level (captcha in our example)

When i look in https://github.com/crowdsecurity/cs-php-bouncer/blob/main/settings.example.php , I don't see any "flex mode" ? Maybe it is a Wordpress bouncer feature only ?

from php-cs-bouncer.

mobula9 avatar mobula9 commented on August 16, 2024

I closed this ticket as there is already a better way to handle initial need.

from php-cs-bouncer.

Related Issues (8)

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.