Hi Kev,

I had a similar problem but for my production applications. I wanted my
solution to be flexible and server independent so what I did was create
a servlet filter, as someone else has already suggested. I've had it for
production for almost a month and so far so good.
I have to admit that I went a little further down the road and I allowed
to specify the IP/hostnames to be allowed denied through an xml file
that can be read from a file, a URL or a database. That way I got
maximum flexibility.
These are the links that I used to create my filter:
http://developer.java.sun.com/developer/technicalArticles/Servlets/servletapi2.3\
http://www.orionserver.com/tutorials/filters/

I hope this helps,
Dan

Kevin Duffey wrote:
> 
> Hi all,
> 
> I would like to block out ALL ips from viewing my site (using my static ip)
> except for a few ips, which are from co-workers over the internet. Is this
> possible? If so, how? I read in the orion-web.xml.html file about ip-access
> tag, and when I tried it, it did block off all ips. But when I added when to
> allow it, such as "localhost" or my direct IP, sometimes it wouldn't allow
> it, and other times the browser sat and spun for about 5 minutes, then
> reported a time out.
> 
> Thanks.

-- 
-------------------------------------------
Daniel Lopez Janariz ([EMAIL PROTECTED])
Web Services
Computer Center
Balearic Islands University
-------------------------------------------

Reply via email to