Comments (4)
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.
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.
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.
I closed this ticket as there is already a better way to handle initial need.
from php-cs-bouncer.
Related Issues (8)
- I installed this on my ubuntu 16 vps now can't access anything php HOT 3
- Add compatibility with PHP 8.1 HOT 5
- Add Country scope for decision
- php 8.1 (captcha) Implicit conversion from float to int loses precision HOT 2
- Session and redirect issues (standalone bouncer)
- Do not use session anymore HOT 1
- Deleted count after cache update is always 0 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from php-cs-bouncer.