"Flemion Shafeeq" <[email protected]> wrote in message 
news:[email protected]...
> Hi,
> We restrict IP addresses to our application using RemoteAddressValve.
> But we have a requirement of redirecting the request to a customized html
> static page when we get request from such denied IP's.
> How do i do this.
> Is it possible to customize this class to do this redirection and deploy 
> it
> in the tomcat application?

Tomcat is open-source, so it is always possible to customize it any way you 
like ;).

If your webapp never sends a 403 (Forbidden) response (e.g. you don't 
authenticate users), then you could do it by specifying a custom error-page 
for the error code 403.  If you send a 403 response for other reasons, then 
it is likely that it will be easier to roll-your-own Filter based on the 
code from RemoteAddressValve.

> Please help. we are using tomcat 5.5
> Thanks
> Flemion.





---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to