Tomcat server IP address restriction methods?
问题 I knew that I can add a Valve in context.xml in tomcat server to allow or deny some IP address : <Valve className="org.apache.catalina.valves.RemoteAddrValve" allow="127\.0\.0\.1" denyStatus="403" /> Except above configuration, Are there any other method that I can config IP restriction? For example, can I use text file or database to store IP addresses for IP restriction propose? Thank you very much!!! 回答1: You can dynamically register Tomcat's Remote Address Filter. http://tomcat.apache.org