tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Iain Darroch <darro...@dcs.gla.ac.uk>
Subject RE: Restricting access by machine
Date Thu, 11 Apr 2002 15:30:41 GMT

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>


Mime
View raw message