G
Guest
I have a folder within my web application that holds a bunch of word
documents. I have security setup to use forms authentication. If I try and
access a .aspx page that is not listed in my web.config file to allow
anonymous users, it will redirect appropriately. However, if I try and
access one of the word documents, it can be accessed through a web browser
even if the user is not logged in. Is this intended to be this way? Why are
these documents able to be accessed within the web application, even if a
user is not logged in?
Here's how I setup the security:
<authentication mode="Forms">
<forms loginUrl="DefaultLogin.aspx" />
</authentication>
<authorization>
<deny users="?" />
</authorization>
<location path="DefaultLogin.aspx">
<system.web>
<authorization>
<allow users="?" />
</authorization>
</system.web>
</location>
documents. I have security setup to use forms authentication. If I try and
access a .aspx page that is not listed in my web.config file to allow
anonymous users, it will redirect appropriately. However, if I try and
access one of the word documents, it can be accessed through a web browser
even if the user is not logged in. Is this intended to be this way? Why are
these documents able to be accessed within the web application, even if a
user is not logged in?
Here's how I setup the security:
<authentication mode="Forms">
<forms loginUrl="DefaultLogin.aspx" />
</authentication>
<authorization>
<deny users="?" />
</authorization>
<location path="DefaultLogin.aspx">
<system.web>
<authorization>
<allow users="?" />
</authorization>
</system.web>
</location>