You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Lemke, Michael IZ/HZA-IC1" <le...@de.ina.com> on 2002/06/17 13:14:47 UTC

Tomcat 3.3.1: how to deny access for certain IP addresses?

The subject pretty much says it.  We run Tomcat 3.3.1 as a webserver
(no Apache or anything) and would like to deny access from certain
IP addresses.  More precisely, for a certain servlet.  Can this be 
done and if yes, how?

Thanks,
Michael

> -- 
> Michael Lemke  --  Information Services Communication (IZ/HZA-IC1)
> INA-Schaeffler KG,               Tel: +49 (0)9132 - 82 3441
> Industriestr 1-3,                e-mail: lemkemch@de.ina.com 
> D-91074 Herzogenaurach           http://www.ina.com
> 

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Tomcat 3.3.1: how to deny access for certain IP addresses?

Posted by ravi <ra...@ionidea.com>.
hi mike,

one way of handling it is thro ur appln itself by using

request.getRemoteAddr() which returns the IP address of the client
requesting ur servlet

this can then be compared/patternmatched against a databse or any other
storage unit...

regs,
ravi


----- Original Message -----
From: "Lemke, Michael IZ/HZA-IC1" <le...@de.ina.com>
To: <to...@jakarta.apache.org>
Sent: Monday, June 17, 2002 4:44 PM
Subject: Tomcat 3.3.1: how to deny access for certain IP addresses?


> The subject pretty much says it.  We run Tomcat 3.3.1 as a webserver
> (no Apache or anything) and would like to deny access from certain
> IP addresses.  More precisely, for a certain servlet.  Can this be
> done and if yes, how?
>
> Thanks,
> Michael
>
> > --
> > Michael Lemke  --  Information Services Communication (IZ/HZA-IC1)
> > INA-Schaeffler KG,               Tel: +49 (0)9132 - 82 3441
> > Industriestr 1-3,                e-mail: lemkemch@de.ina.com
> > D-91074 Herzogenaurach           http://www.ina.com
> >
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>
>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>