Changeset 676:c7aa5e7dd068


Ignore:
Timestamp:
10/31/12 17:24:39 (5 years ago)
Author:
Kostis Kyzirakos <kkyzir@…>
Branch:
default
Message:

Added directives to web.xml that enable filtering based on the string representation of the remote client's IP address.
Added a regular expression that is filters IP addresses that are usefull for NKUA.
Notice that this feature is Tomcat-specific

File:
1 edited

Legend:

Unmodified
Added
Removed
  • endpoint/WebContent/WEB-INF/web.xml

    r661 r676  
    55        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
    66        xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"> 
     7 
     8        <!-- Uncomment the following lines to enable ip filtering-->  
     9        <!--  
     10        <filter> 
     11                <filter-name>Remote Address Filter</filter-name> 
     12                <filter-class>org.apache.catalina.filters.RemoteAddrFilter</filter-class> 
     13                <init-param>  
     14                        <param-name>allow</param-name> 
     15                        <param-value>(195\.134\.(67|71)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?))|(88\.197\.4[4-7]\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?))|(195\.134\.105\.([01]?[0-9][0-9]?))</param-value>  
     16                </init-param> 
     17        </filter> 
     18        <filter-mapping> 
     19                <filter-name>Remote Address Filter</filter-name> 
     20                <url-pattern>/*</url-pattern> 
     21        </filter-mapping>        
     22        --> 
    723         
    824        <display-name>StrabonEndpoint</display-name> 
Note: See TracChangeset for help on using the changeset viewer.