Author: BigMeat | Posted on: 11/23/2010 10:13:00 AM | Views : 505

Hi
I have a .Net 4 web application which has a folder called "docs" which is full of Word docs on the root of the website.  The words docs are linked with a gridview in my "admin" section
I only want Autheicated users to be able to renders the word docs in the doc folder.  I am finding if the user logs out and they manually type in the url to the Word document it renders the file eg.  www.mydomain.com/docs/something.doc
i have tried putting this in my web.config but did not work for the Word docs.  It stops the rendering of .aspx files but not .doc's
<location path="docs">
    <system.web>
      <authorization>
        <deny users="?"  />
      </authorization>
Go to the complete details ...