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 restrict-source-ip rule.
5-
6- The restriction applies to: /admin/.*
7- Pattern exception: (192\.168\.1\\..*|127.0.0.1)
8- -->
9-
10- <policy >
11-
12- <settings >
13- <mode >redirect</mode >
14- <error-handling >
15- <default-redirect-page >/security/error.jsp</default-redirect-page >
16- <block-status >403</block-status >
17- </error-handling >
18- </settings >
19-
20- <authorization-rules >
21- <restrict-source-ip
22- type=" regex"
23- ip-regex=" (192\.168\.1\\..*|127.0.0.1)" >/admin/.*</restrict-source-ip >
24-
25- </authorization-rules >
26-
1+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2+
3+ <!--
4+ This test file exemplifies a restrict-source-ip rule.
5+
6+ The restriction applies to: /admin/.*
7+ Pattern exception: (192\.168\.1\\..*|127.0.0.1)
8+ -->
9+
10+ <policy >
11+
12+ <settings >
13+ <mode >redirect</mode >
14+ <error-handling >
15+ <default-redirect-page >/security/error.jsp</default-redirect-page >
16+ <block-status >403</block-status >
17+ </error-handling >
18+ </settings >
19+
20+ <authorization-rules >
21+ <restrict-source-ip
22+ type=" regex"
23+ ip-regex=" (192\.168\.1\\..*|127.0.0.1)" >/admin/.*</restrict-source-ip >
24+
25+ </authorization-rules >
26+
2727</policy >
You can’t perform that action at this time.
0 commit comments