You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Roman Bednarek <ro...@mikronika.com.pl> on 2003/10/09 09:58:04 UTC

blocking connections

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.*.

   Thanks for any advice
   Roman Bednarek


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


Re: blocking connections

Posted by Roman Bednarek <ro...@mikronika.com.pl>.
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


Re: blocking connections

Posted by Tim Funk <fu...@joedog.org>.
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