There is already valves which do this.

See Remote Address Filter in
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/valve.html

-Tim

Roman Bednarek wrote:

Hi.
I want to block connections from some hosts, I was reading about Filters
and Valves, but I think they cannot do what I want to achive.
The goals are:
- block connection very early, immediately after connection, before
reading and parsing any data from the client (to save the bandwith)
- manage an access list from the servlet, adding and removing hosts when
necessary
It would be better to achive this under stable tomcat release that is
4.*.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to