crowdsecurity / cs-wordpress-bouncer

CrowdSec is an open-source cyber security tool. This plugin blocks detected attackers or display them a captcha to check they are not bots.
https://wordpress.org/plugins/crowdsec/
MIT License
37 stars 6 forks source link

Use JSON settings only in preprend mode (standalone) #65

Closed julienloizelet closed 2 years ago

julienloizelet commented 2 years ago

In some case, we can have inconstancy between the JSON file and the database settings.

For example, if we use the wp cli tool to update a setting (or just update the settings directly in database), the static file won't be updated until an admin save the configuration again from the back office.

That's why I suggest limiting the use of this JSON static config file to the standalone mode. In "normal" mode, we should get the configuration from the database directly.

julienloizelet commented 2 years ago

close: https://github.com/crowdsecurity/cs-wordpress-bouncer/pull/66