IP based restriction

2005-04-04 Thread Jobish P
Hi all, I am a newbie to Tomcat. I have installed Tomcat 5.0.19 on Redhat LInux 9, and going fine. I would like to restrict some of my directories to certain IP's only, say a range of IP. How can I restrict access to a directory in /tomcat/webappas/ROOT on the basis of IP ? I tried with valves,

Re: IP based restriction

2005-04-04 Thread Tim Funk
There is nothing that restricts on a directory level. You'd need to write your own servlet filter. -Tim Jobish P wrote: Hi all, I am a newbie to Tomcat. I have installed Tomcat 5.0.19 on Redhat LInux 9, and going fine. I would like to restrict some of my directories to certain IP's only, say a

Re: IP based restriction

2005-04-04 Thread haim
Try the following filer class Add this to web.xml filter filter-nameAccessControl/filter-name filter-classpackage.AccessControl/filter-class /filter filter-mapping filter-nameAccessControl/filter-name url-pattern/directoryName/*/url-pattern /filter-mapping import