tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Cox, Charlie" <c...@cincom.com>
Subject RE: Restricting access by machine
Date Thu, 11 Apr 2002 16:47:58 GMT
a filter(tc4) would work well for this. You can then define the paths in
server.xml that the filter should run against.

Charlie

> -----Original Message-----
> From: Iain Darroch [mailto:darrochi@dcs.gla.ac.uk]
> Sent: Thursday, April 11, 2002 11:31 AM
> To: Tomcat Users List
> Subject: RE: Restricting access by machine
> 
> 
> 
> I'm sorry I didnt make it clear.  I want the restriction to be in the
> webserver config files.  I could do as you suggest, but I 
> want a general
> solution that could apply to any servlets, or static html 
> pages for that
> matter.  
> 
> Thanks
> 
> Iain
> 
> On Thu, 11 Apr 2002, Wagoner, Mark wrote:
> 
> > Can you use request.getRemoteAddr() and use the machine's 
> IP address?
> > 
> > 
> > 
> > 
> > I dont think that would work as I want other servlets on 
> the webserver to
> > be accessable over the web.
> > 
> > Iain
> > On Thu, 11 Apr 2002, Graham Stirling wrote:
> > 
> > > Have you considered restricting access via a firewall?
> > > 
> > > Cheers,
> > > 
> > > Graham.
> > > > Subject: Restricting access by machine
> > > > 
> > > > 
> > > > 
> > > > Hi,
> > > > 
> > > > I have a servlet that I wish to restrict access to.  I can do 
> > > > this very
> > > > easily by using authentication and requiring a user name and 
> > > > password to
> > > > be entered.
> > > > 
> > > > However I would like to take it a step further and restrict 
> > > > access to one
> > > > particular machine (or perhaps a group of machines).  I was 
> > > > wondering what
> > > > the best way of doing this was?
> > > > 
> > > > Many Thanks
> > > > 
> > > > Iain
> 
> 
> --
> To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
> Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>
> 

--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


Mime
View raw message