-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
To improve the readability of the tests. Signed-off-by: Simon Rüegg <simon@rueggs.ch>
- Loading branch information
Showing
7 changed files
with
61 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
|
||
SecRule REQUEST_URI "@strmatch /some/path" \ | ||
"phase:2,nolog,id:10101010,\ | ||
ctl:ruleRemoveById=10" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
|
||
SecRule REQUEST_URI "@strmatch /" \ | ||
"phase:2,nolog,id:10101010,\ | ||
ctl:ruleRemoveById=9010" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
|
||
# Path /path | ||
# This is the default template | ||
# Some other template | ||
SecRule REQUEST_URI "@strmatch /path" \ | ||
"phase:2,nolog,id:10101010,\ | ||
ctl:ruleRemoveById=9010,\ | ||
ctl:ruleRemoveById=9011,\ | ||
ctl:ruleRemoveById=9012,\ | ||
ctl:ruleRemoveTargetById=942430;ARGS:variables" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
|
||
# This is the default template | ||
SecRule REQUEST_URI "@strmatch /path/one" \ | ||
"phase:2,nolog,id:10101010,\ | ||
ctl:ruleRemoveById=9010" | ||
|
||
SecRule REQUEST_URI "@strmatch /path/three" \ | ||
"phase:2,nolog,id:10101011,\ | ||
ctl:ruleRemoveById=9012" | ||
|
||
# Some other template | ||
SecRule REQUEST_URI "@strmatch /path/two" \ | ||
"phase:2,nolog,id:10101012,\ | ||
ctl:ruleRemoveById=9011" | ||
|
||
# ModSec Rule Exclusion: 942430 : Restricted SQL Character Anomaly Detection (args): # of special characters exceeded (12) (severity: WARNING) PL2 | ||
SecRule REQUEST_URI "@strmatch /some/path" \ | ||
"phase:2,nolog,id:10101013,\ | ||
ctl:ruleRemoveTargetById=942430;ARGS:query" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
|
||
# Path /some/path | ||
SecRule REQUEST_URI "@strmatch /some/path" \ | ||
"phase:2,nolog,id:10101010,\ | ||
ctl:ruleRemoveTargetById=942430;ARGS:query,\ | ||
ctl:ruleRemoveTargetById=942431;ARGS:identificationRedirectURL" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
|
||
SecRule REQUEST_URI "@strmatch /" \ | ||
"phase:2,nolog,id:10101010,\ | ||
ctl:ruleRemoveById=921180" |