Hi,
I have a web application in ASP.NET. It has a subfolder which contains
1) HTML files
2) XML files
We want that these files should not be accessible through URL to the users
For e.g. when user will browse like following URL
http://mysite/files/myxml.xml then these files should not be accessible to the users.
I tested this for ASPX pages using following code it works
<
authentication mode="Forms" ><forms path="/" loginUrl="login.aspx" protection="All" timeout="30">
<credentials passwordFormat="Clear">
<user name="admin" password="admin"/>
credentials>
forms>
authentication>
#########################################
<
location path="files"> <system.web> <authorization> <allow users="admin" /> <deny users="?"/> authorization> system.web> location>
But for HTML and XML file its not working.
Can any one please help ?
Thanks
Prasad . G . Godbole

Dipal ChoksiRank #199 · 12K reputationPosted May 15, 2008, 8:32 AM EDT
Prasad Godbole153 reputationPosted May 20, 2008, 2:35 AM EDT
Hi,
We are using ASP.NET 1.1
Thanks
Prasad . G . Godbole
Prasad Godbole153 reputationPosted May 29, 2008, 1:46 AM EDT
Hi,
Can you please tell me what is solution on this ?
Many Thanks
Prasad . G . Godbole