Hi Andre and Chris;

I understand that Tomcat 6 has valve and Chris, means of context, I have
the feeling that this context.xml may be relevant but i have seen in some
links, conf/server.xml is the place to manipulate.

And the thing is that i didn't see any selective setting to filter the IP
for particular page group, namely, in my administrator path. This is the
example that i found out. <Valve
className="org.apache.catalina.valves.RemoteAddrValve"
allow="133.133.133.133|127.d+.d+.d+|::1|0:0:0:0:0:0:0:1" />

Regards.

P.S. tomcat mailing list is blocking this mail (treats as spam, why would
it be?)

2014-09-24 18:16 GMT+02:00 André Warnier <a...@ice-sa.com>:

> Baran Topal wrote:
>
>> Hi;
>>
>> Recently joined, first mail
>>
>> I have the following filtering which works fine on Tomcat 7 but not on
>> Tomcat 6... It gives just 404.
>>
>> <filter> <filter-name>Remote Address Filter</filter-name>
>> <filter-class>org.apache.catalina.filters.RemoteAddrFilter</filter-class>
>> <init-param> <param-name>allow</param-name>
>> <param-value>127\.\d+\.\d+\.\d+|::1|0:0:0:0:0:0:0:1</param-value>
>> </init-param> </filter> <filter-mapping> <filter-name>Remote Address
>> Filter</filter-name> <url-pattern>/administrator/*</url-pattern>
>> </filter-mapping>
>>
>> How can I apply this filter on Tomcat 6.
>>
>> Details of Tomcat 6
>> Server version: Apache Tomcat/6.0.36
>> Server built:   Oct 16 2012 09:59:09
>> Server number:  6.0.36.0
>> OS Name:        Windows 7
>> OS Version:     6.1
>> Architecture:   amd64
>> JVM Version:    1.7.0_21-b11
>> JVM Vendor:     Oracle Corporation
>>
>> Regards.
>>
>>
> Hi. I had a quick look at the on-line documentation for Tomcat 6, and I
> don't see a remote address *filter* there.  Tomcat 7 has it, but Tomcat 6
> does not seem to have it.
> Tomcat 6 has a Valve for that.
>
> https://tomcat.apache.org/tomcat-6.0-doc/config/filter.html
> https://tomcat.apache.org/tomcat-7.0-doc/config/filter.html
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>

Reply via email to