restrict users from entering the image/text files path directly in the browser.
How do i restrict users from entering the image/text files path directly in the browser.
my web application has restrictions to jsp/servlet pages, wherein we ask for username and password which will chk and db and then authenticate.
but when an image or text file in a particular directory is accessed thru the web i have to restrict. how do i do that.
to be more clear
if i access
http:somename.com/index.jspit will ask for login information and only then other jsp pages can be accessed.
http/somename.com/images/logo.jpgif i type directly this image will appear, but i need to restrict, how to do that in Tomcat.
thanks in advance.