tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: Restricting IP address and redirecting
Date Sun, 14 Dec 2008 15:26:04 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Flemion,

Flemion Shafeeq wrote:
> 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?

Instead of using RemoteAddressValve, you could use
http://tuckey.org/urlrewrite/ to redirect all banned IPs to your
preferred page.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAklFJYsACgkQ9CaO5/Lv0PBPZACgkUz73sRIRHnl0bocDr+RTo2V
s08AnRwlpYJVQcEv8AFhLpKKSHNcxtKC
=XSHu
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message