mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-11-19 18:54:23 +03:00
Refactoring on Action - having RuleWithAction and RuleWithActionsProperties
This commit is contained in:
@@ -27,12 +27,13 @@
|
||||
},
|
||||
"expected": {
|
||||
"debug_log": "Rule returned 1",
|
||||
"error_log": "Matched \"Operator `Rx' with parameter `\\^attack\\$'"
|
||||
"error_log": "Matched \"Operator `Rx' with parameter `\\^attack\\$'",
|
||||
"http_code": 403
|
||||
},
|
||||
"rules": [
|
||||
"SecRuleEngine On",
|
||||
"SecAction \"id:1, setvar:tx.bad_value=attack\"",
|
||||
"SecRule ARGS:param \"@rx ^%{tx.bad_value}$\" \"id:2,log\""
|
||||
"SecRule ARGS:param \"@rx ^%{tx.bad_value}$\" \"id:2,log,deny\""
|
||||
]
|
||||
}
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user