See the JavaDoc for java.util.regex.Pattern in your JDK for the syntax. Note the examples for the RemoteHostValve in the docs mentioned by Serge below.
2011/3/28 Henry Lu <z...@umich.edu>: > Can we have multiple "allow" and multiple "deny" value tags? > > what if I want to allow 123.11.22.33 and 212.22.11.33? > > -Henry > > On 3/27/2011 4:04 PM, Serge Fonville wrote: >> >> Hi, >> >> >> http://tomcat.apache.org/tomcat-7.0-doc/config/context.html#Request_Filters >> >> I found deny="192\.168\.1\.\d+" would cover it. >> >> If not, please clarify further >> >> HTH >> Kind regards/met vriendelijke groet, >> >> Serge Fonville >> >> http://www.sergefonville.nl >> >> Convince Google!! >> They need to add GAL support on Android >> http://code.google.com/p/android/issues/detail?id=4602 >> >> >> 2011/3/27 Henry Lu<z...@umich.edu> >> >>> based upon the documentation, in the<context tag, we can set something >>> like the following: >>> >>> <Valve className="org.apache.catalina.valves.RemoteAddrValve" >>> allow="127\.0\.0\.1"/> >>> >>> to only allow local access. Can we using wild card or a set of url/ip >>> addrss access? Could someone give me some examples for allowing: >>> >>> 123.122.* >>> 111.* >>> 101.202.1.* >>> >>> -Henry >>> --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org