File tree Expand file tree Collapse file tree
configuration/esapi/waf-policies Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- <?xml version =" 1.0" encoding =" UTF-8" ?>
2-
3- <!--
4- This test file exemplifies a detect-content rule.
5-
6- Protection #1: The rule should fire whenever the string "2008" appears in
7- a response body.
8- Exception #1: The rule should -not- fire when the content type is anything
9- but text/*.
10-
11- -->
12-
13- <policy >
14-
15- <settings >
16- <mode >redirect</mode >
17- <error-handling >
18- <default-redirect-page >/security/error.jsp</default-redirect-page >
19- <block-status >403</block-status >
20- </error-handling >
21- </settings >
22-
23- <outbound-rules >
24- <detect-content content-type =" .*text/.*" pattern =" .*2008.*" />
25- </outbound-rules >
26-
1+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2+
3+ <!--
4+ This test file exemplifies a detect-content rule.
5+
6+ Protection #1: The rule should fire whenever the string "2008" appears in
7+ a response body.
8+ Exception #1: The rule should -not- fire when the content type is anything
9+ but text/*.
10+
11+ -->
12+
13+ <policy >
14+
15+ <settings >
16+ <mode >redirect</mode >
17+ <error-handling >
18+ <default-redirect-page >/security/error.jsp</default-redirect-page >
19+ <block-status >403</block-status >
20+ </error-handling >
21+ </settings >
22+
23+ <outbound-rules >
24+ <detect-content content-type =" .*text/.*" pattern =" .*2008.*" />
25+ </outbound-rules >
26+
2727</policy >
You can’t perform that action at this time.
0 commit comments