mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-29 19:24:29 +03:00
Forces disruptive to be first-rule-only
ModSecurity version 3 is capable to handle disruptive actions in different rules from the chain. However, lets get it working in the same fashion that we have in version 2.
This commit is contained in:
@@ -35,8 +35,8 @@
|
||||
},
|
||||
"rules":[
|
||||
"SecRuleEngine On",
|
||||
"SecRule ARGS:key \"@contains other_value\" \"chain,id:28\"",
|
||||
"SecRule MATCHED_VAR \"@contains asdf\" \"pass\""
|
||||
"SecRule ARGS:key \"@contains other_value\" \"chain,id:28,pass\"",
|
||||
"SecRule MATCHED_VAR \"@contains asdf\" \"\""
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -75,8 +75,9 @@
|
||||
},
|
||||
"rules":[
|
||||
"SecRuleEngine On",
|
||||
"SecRule ARGS:key \"@contains other_value\" \"chain,id:28\"",
|
||||
"SecRule MATCHED_VAR \"@contains Aasdf\" \"pass\"",
|
||||
"SecRule ARGS:key \"@contains other_value\" \"chain,id:28,pass\"",
|
||||
"SecRule MATCHED_VAR \"@contains Aasdf\" \"\"",
|
||||
|
||||
"SecRule MATCHED_VAR \"@contains other_value\" \"id:29,pass\"",
|
||||
"SecRule MATCHED_VAR \"@contains other_value\" \"id:30,pass\""
|
||||
]
|
||||
|
Reference in New Issue
Block a user