Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 99581 invoked from network); 14 Dec 2008 15:26:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 14 Dec 2008 15:26:43 -0000 Received: (qmail 42714 invoked by uid 500); 14 Dec 2008 15:26:43 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 42681 invoked by uid 500); 14 Dec 2008 15:26:43 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 42670 invoked by uid 99); 14 Dec 2008 15:26:43 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 14 Dec 2008 07:26:43 -0800 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [76.96.30.24] (HELO QMTA02.emeryville.ca.mail.comcast.net) (76.96.30.24) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 14 Dec 2008 15:26:28 +0000 Received: from OMTA01.emeryville.ca.mail.comcast.net ([76.96.30.11]) by QMTA02.emeryville.ca.mail.comcast.net with comcast id r2Xa1a00G0EPchoA23S6mF; Sun, 14 Dec 2008 15:26:06 +0000 Received: from [192.168.1.105] ([68.50.99.121]) by OMTA01.emeryville.ca.mail.comcast.net with comcast id r3S31a00F2d8Sh88M3S5iN; Sun, 14 Dec 2008 15:26:05 +0000 Message-ID: <4945258C.6050802@christopherschultz.net> Date: Sun, 14 Dec 2008 10:26:04 -0500 From: Christopher Schultz User-Agent: Thunderbird 2.0.0.18 (Windows/20081105) MIME-Version: 1.0 To: Tomcat Users List Subject: Re: Restricting IP address and redirecting References: <5.2.1.1.2.20081211113217.020908c0@hulmail.harvard.edu> In-Reply-To: <5.2.1.1.2.20081211113217.020908c0@hulmail.harvard.edu> X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org -----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