Should work as is with the allow expression typed either way. Do you have Apache httpd or something similar acting as a proxy server at 192.168.200.188? A quick diagnostic might show if this is the case:
<jsp:root version="1.2" xmlns:jsp="http://java.sun.com/JSP/Page"> <jsp:directive.page contentType="text/html; charset=UTF-8" session="false" /> <jsp:text> <![CDATA[<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> ]]> </jsp:text> <html xmlns="http://www.w3.org/1999/xhtml" lang="en"> <head> <title>View remote address test</title> </head> <body> <p>You are visiting from <b>${pageContext.request.remoteAddr}</b></p> </body> </html> </jsp:root> Drop it in your webapp and call it from various clients to see if the valve is really failing or a proxy is making them all look like they are from the same place.. Side note on the allow expression: the '.' character is a wild card character -- '192w168t200f188' would evaluate the same as 192.168.200.188 with the way you typed it the first time. '\.' matches the literal '.' character. If anything, the second one you tried was more restrictive. --David Peter Neu wrote: >Ok, I changed the allow attribute to a regular exp. Looks like this now: > > <Valve className="org.apache.catalina.valves.RemoteAddrValve" > allow="192\.168\.200\.188" > /> > >But still the filter lets all users access the application. > >Cheers, >Pete > > > > >>-----Ursprüngliche Nachricht----- >>Von: Mark Thomas [mailto:[EMAIL PROTECTED] >>Gesendet: Dienstag, 14. November 2006 01:11 >>An: Tomcat Users List >>Betreff: Re: Problem with RemoteAddrValve in Context.xml >> >>Peter Neu wrote: >> >> >>>I'm trying to define an ip access filter with RemoteAddrValve in the >>>context.xml file I deploy with my war file. >>> >>>If I read the documentation right the only thing to be done is write the >>>following into the context.xml file: >>> >>><?xml version="1.0" encoding="UTF-8"?> >>><Context path="/user/public/"> >>> <Valve className="org.apache.catalina.valves.RemoteAddrValve" >>> allow="192.168.200.188" >>> /> >>></Context> >>> >>>But this does not work out. Does anyone know what's wrong? >>> >>> >>As the docs state, you need to use a regular expression. >>"192.168.200.188" doesn't do what you think it does since "." is a >>special character in regular expressions. >> >>Mark >> >>--------------------------------------------------------------------- >>To start a new topic, e-mail: users@tomcat.apache.org >>To unsubscribe, e-mail: [EMAIL PROTECTED] >>For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > > >--------------------------------------------------------------------- >To start a new topic, e-mail: users@tomcat.apache.org >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] > > > --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]