From users-return-228180-apmail-tomcat-users-archive=tomcat.apache.org@tomcat.apache.org Tue Oct 4 19:11:56 2011 Return-Path: X-Original-To: apmail-tomcat-users-archive@www.apache.org Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D3F5E7CA0 for ; Tue, 4 Oct 2011 19:11:56 +0000 (UTC) Received: (qmail 27443 invoked by uid 500); 4 Oct 2011 19:11:53 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 27290 invoked by uid 500); 4 Oct 2011 19:11:53 -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 27281 invoked by uid 99); 4 Oct 2011 19:11:53 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Oct 2011 19:11:53 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [209.85.213.45] (HELO mail-yw0-f45.google.com) (209.85.213.45) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Oct 2011 19:11:49 +0000 Received: by ywm39 with SMTP id 39so1082890ywm.18 for ; Tue, 04 Oct 2011 12:11:28 -0700 (PDT) MIME-Version: 1.0 Received: by 10.236.175.195 with SMTP id z43mr8901126yhl.66.1317755488181; Tue, 04 Oct 2011 12:11:28 -0700 (PDT) Received: by 10.236.108.19 with HTTP; Tue, 4 Oct 2011 12:11:28 -0700 (PDT) In-Reply-To: <4E8B59C8.7010006@christopherschultz.net> References: <4E8B40A3.2010103@CyberTools.biz> <4E8B4742.8040409@ice-sa.com> <4E8B5484.5030203@christopherschultz.net> <4E8B59C8.7010006@christopherschultz.net> Date: Tue, 4 Oct 2011 21:11:28 +0200 Message-ID: Subject: Re: Denying IPs using the Valve command in context.xml From: Francis GALIEGUE To: Tomcat Users List Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Tue, Oct 4, 2011 at 21:08, Christopher Schultz wrote: [...] > > - From the docs: > > "If this attribute [allow] is specified, the remote address MUST match > for this request to be accepted". > > "If this attribute [deny] is specified, the remote address MUST NOT > match for this request to be accepted". > > I don't think Matacher.lookingAt is appropriate for this kind of checking= . > Well, it depends on the definition of "match", I guess. For me, a regex matches an input if it matches anywhere in the input! Which is pretty much the definition of regex matching, and which is why Java's .matches() methods are misnomers... --=20 Francis Galiegue ONE2TEAM Ing=C3=A9nieur syst=C3=A8me Mob : +33 (0) 683 877 875 Tel : +33 (0) 178 945 552 fge@one2team.com 40 avenue Raymond Poincar=C3=A9 75116 Paris --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org