You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Behrang Saeedzadeh <be...@toofan2001.com> on 2001/12/13 22:56:58 UTC
Restricting access to files
Hi Friends,
I have a file named site.properties in the root of my web application that
contains some information about the site.
I want my file be unaccessible to the users, but whenever I point to it
in my browser's address bar, my browser opens it and shows its contents. How
can I make this file unaccessible to the users?
Thanks in advance,
Behrang S.
--
To unsubscribe: <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>
RE: Restricting access to files
Posted by Wouter Boers <li...@ikke.net>.
Move it to the WEB-INF directory, which cannot be access by the browser by
servlet 2.2 specs (preferred) or move to the file to a location that's in
the classpath so the tomcat classloaded can find it.
Wouter
-----Original Message-----
From: Behrang Saeedzadeh [mailto:behrangsa@toofan2001.com]
Sent: Thursday, 13 December, 2001 22:57
To: tomcat-user@jakarta.apache.org
Subject: Restricting access to files
Hi Friends,
I have a file named site.properties in the root of my web application that
contains some information about the site.
I want my file be unaccessible to the users, but whenever I point to it
in my browser's address bar, my browser opens it and shows its contents. How
can I make this file unaccessible to the users?
Thanks in advance,
Behrang S.
--
To unsubscribe: <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>
--
To unsubscribe: <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>