tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: Denying IPs using the Valve command in context.xml
Date Tue, 04 Oct 2011 18:46:28 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Francis,

On 10/4/2011 2:37 PM, Francis GALIEGUE wrote:
> On Tue, Oct 4, 2011 at 19:49, André Warnier <aw@ice-sa.com> wrote: 
> [...]
> 
>> In this particular case, "\.googlebot\.com$" would be better
>> (with the RemoteHostValve).
>> 
> 
> No, that would not even work, for there is a fatal flaw in all 
> existing Valves and Filters using regexes: they use the .matches() 
> method of Matcher instead of .lookingAt(), which means you _must_ 
> specify the whole hostname in the regex...

Are you saying that ".*\.googlebot\.com" doesn't work?

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

iEYEARECAAYFAk6LVIQACgkQ9CaO5/Lv0PDxPQCdHaH4ecRo0h/TXmdRYMZ1Egx2
ZfUAoIjk3/F2inEAM4eFxEcR6NXA5kva
=Xmb9
-----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