"Flemion Shafeeq" <flem...@hulmail.harvard.edu> wrote in message news:5.2.1.1.2.20081211113217.02090...@hulmail.harvard.edu... > 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: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org