tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robert Koberg <...@koberg.com>
Subject Re: RemoteAddrValve and RemoteHostValve
Date Sat, 28 Feb 2009 04:04:19 GMT

On Feb 27, 2009, at 9:28 PM, Zak Mc Kracken wrote:

> Hi all,
>
> I'd like to filter incoming requests with this criterion:
>
> if it's www.somewhere.com -> OK
> else if it's 1.2.3.4 -> OK
> else -> KO
>
> Is it possible to do that by combining RemoteHostValve and
> RemoteAddrValve? How? I simply tried to write them one after another,
> but all is blocked, it seems they cannot be used together...


Why not a simple filter with request.getRemoteAddr()/ 
request.getRemoteHost() ?

-Rob

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


Mime
View raw message