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:[EMAIL PROTECTED]> For additional commands: <mailto:[EMAIL PROTECTED]> Troubles with the list: <mailto:[EMAIL PROTECTED]>
