summaryrefslogtreecommitdiffstats
path: root/catalog-fe/src/main/resources/jetty-ipaccess.xml
blob: 97db551f02a84d3f3510020c1b464b68823037ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<?xml version="1.0"?>
<!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "http://www.eclipse.org/jetty/configure_9_0.dtd">

<!-- =============================================================== -->
<!-- Mixin the Statistics Handler                                    -->
<!-- =============================================================== -->


<Configure id="Server" class="org.eclipse.jetty.server.Server">

    <Get id="oldhandler" name="handler"/>

    <Set name="handler">
     <New id="IPAccessHandler" class="org.eclipse.jetty.server.handler.IPAccessHandler">
      <Set name="handler"><Ref refid="oldhandler"/></Set>
      <Set name="white">
        <Array type="String">
	      <Item>0-255.0-255.0-255.0-255</Item>
	</Array>
      </Set>
      <Set name="black">
        <Array type="String">
	      <Item>127.0.0.1/blacklisted</Item>
	      <Item>127.0.0.2/black.html</Item>
	    </Array>
      </Set>
      <Set name="whiteListByPath">false</Set>
     </New>
    </Set>
</Configure>