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 an enforce-https rule.
5-
6- Protection #1: a request of any kind for /foo should be redirected to secure request with 302.
7- Exception #1: Static path /index.html
8- Exception #2: Pattern path /images/.*
9- -->
10-
11- <policy >
12-
13- <settings >
14- <mode >redirect</mode >
15- <error-handling >
16- <default-redirect-page >/security/error.jsp</default-redirect-page >
17- <block-status >403</block-status >
18- </error-handling >
19- </settings >
20-
21- <url-rules >
22- <enforce-https path =" /.*" >
23- <path-exception >/index.html</path-exception >
24- <path-exception type =" regex" >/images/.*</path-exception >
25- </enforce-https >
26- </url-rules >
27-
1+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2+
3+ <!--
4+ This test file exemplifies an enforce-https rule.
5+
6+ Protection #1: a request of any kind for /foo should be redirected to secure request with 302.
7+ Exception #1: Static path /index.html
8+ Exception #2: Pattern path /images/.*
9+ -->
10+
11+ <policy >
12+
13+ <settings >
14+ <mode >redirect</mode >
15+ <error-handling >
16+ <default-redirect-page >/security/error.jsp</default-redirect-page >
17+ <block-status >403</block-status >
18+ </error-handling >
19+ </settings >
20+
21+ <url-rules >
22+ <enforce-https path =" /.*" >
23+ <path-exception >/index.html</path-exception >
24+ <path-exception type =" regex" >/images/.*</path-exception >
25+ </enforce-https >
26+ </url-rules >
27+
2828</policy >
You can’t perform that action at this time.
0 commit comments