you can try by putting the file out of your servers public access and the by
providing the page thru the (trusted)servlet's File API.
--
On Sun, 23 Apr 2000 19:25:24 Krishnan Srinivasan wrote:
>Does anyone know how to use the directory secure_html in JavaWebServer.
>The reason is as follows.
>How do you keep the user away from typing the directory to the html files.
>eg.
>my servlets are at
>c:\javawebserver2.0\servlets\
>the html files are at
>c:\javawebserver2.0\public_html\menu.html
>and lets say my IP address is 122.23.234.123
>
>if the user types in http://122.23.234.123/menu.html ..He can access the
>html file directly without even logging in.. Is there any other way without
>using servlets in this case ? keep the html folders in the some place so
>that the user can't directly access it but has to log in and be a VALID USER
>and can't just type the way to the html files !
>
>Thanks
>Krishnan
>
>________________________________________________________________________
>Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
>
>___________________________________________________________________________
>To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
>of the message "signoff SERVLET-INTEREST".
>
>Archives: http://archives.java.sun.com/archives/servlet-interest.html
>Resources: http://java.sun.com/products/servlet/external-resources.html
>LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>
Send FREE April Fool's Greetings to your friends!
http://www.whowhere.lycos.com/redirects/American_Greetings.rdct
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html