tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Roman Bednarek <ro...@mikronika.com.pl>
Subject Re: blocking connections
Date Thu, 09 Oct 2003 14:45:25 GMT

Hi.
  I thought that a valve can be used only after the request object is
created(maybe I am wrong), so at that time the data from client is already
read and processed, and it is too late.

   Thanks
   Roman Bednarek

 On Thu, 9 Oct 2003, Tim Funk wrote:

> 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: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>

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


Mime
View raw message