mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-29 19:24:29 +03:00
Adds the SecRemoteRulesFailAction directive
This directive allows the user to set a default action whenever the SecRemoteRules failed to download a set of rules. Current the supported values are: Warn and Abort. By default `Abort' is selected.
This commit is contained in:
@@ -146,6 +146,7 @@ extern DSOLOCAL unsigned long int msc_pcre_match_limit;
|
||||
extern DSOLOCAL unsigned long int msc_pcre_match_limit_recursion;
|
||||
|
||||
extern DSOLOCAL msc_remote_rules_server *remote_rules_server;
|
||||
extern DSOLOCAL int remote_rules_fail_action;
|
||||
|
||||
extern DSOLOCAL int status_engine_state;
|
||||
|
||||
@@ -198,6 +199,9 @@ extern DSOLOCAL int *unicode_map_table;
|
||||
#define STATUS_ENGINE_ENABLED 1
|
||||
#define STATUS_ENGINE_DISABLED 0
|
||||
|
||||
#define REMOTE_RULES_ABORT_ON_FAIL 0
|
||||
#define REMOTE_RULES_WARN_ON_FAIL 1
|
||||
|
||||
#define HASH_DISABLED 0
|
||||
#define HASH_ENABLED 1
|
||||
|
||||
|
Reference in New Issue
Block a user