mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-29 11:16:33 +03:00
Adds sanity check to confirm that the rule has an ID and it is not duplicated
This commit is contained in:
@@ -37,8 +37,8 @@
|
||||
"SecRuleEngine On",
|
||||
"SecDebugLog \/tmp\/modsec_debug.log",
|
||||
"SecDebugLogLevel 9",
|
||||
"SecRule REMOTE_ADDR \"@contains 200.249\" \"pass,t:trim,severity:0\"",
|
||||
"SecRule HIGHEST_SEVERITY \"@lt 10\" \"pass,t:trim\""
|
||||
"SecRule REMOTE_ADDR \"@contains 200.249\" \"id:1,pass,t:trim,severity:0\"",
|
||||
"SecRule HIGHEST_SEVERITY \"@lt 10\" \"id:2,pass,t:trim\""
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -79,8 +79,8 @@
|
||||
"SecRuleEngine On",
|
||||
"SecDebugLog \/tmp\/modsec_debug.log",
|
||||
"SecDebugLogLevel 9",
|
||||
"SecRule REMOTE_ADDR \"@contains 200.249\" \"pass,t:trim,severity:EMERGENCY\"",
|
||||
"SecRule HIGHEST_SEVERITY \"@lt 10\" \"pass,t:trim\""
|
||||
"SecRule REMOTE_ADDR \"@contains 200.249\" \"id:1,pass,t:trim,severity:EMERGENCY\"",
|
||||
"SecRule HIGHEST_SEVERITY \"@lt 10\" \"id:2,pass,t:trim\""
|
||||
]
|
||||
}
|
||||
]
|
||||
|
Reference in New Issue
Block a user