Securing a directory and its files with forms authentication



I have a simple asp.net 2.0 application that includes two components:

- a file uploader
- a lister of files that have been uploaded

Files are word processing documents; they get stored to a "papers"
subdirectory of the application.

It would be good if both the file lister *and* the files in "papers"
were secured. But I sense that IIS and asp.net do not work together
to protect documents that aren't aspx files.. For example, I put an
index.html file into the papers directory, and asked IIS for that
document, and was happily sent the document. This, despite a
<location path="papers"> section in my web.config that includes <deny
users="?" />.

I know how to secure a directory with IIS. What I didn't want to do
was secure both the listing.aspx component *and* the papers
directory. I suppose another approach would be to put the lister.aspx
file into the papers directory and secure the directory with IIS and
forget the authentication in asp.net. But that seems wrong.

So, maybe someone could tell me where my thinking's gone wrong.

Thank you very much.

.



Relevant Pages

  • Re: Securing a directory and its files with forms authentication
    ... you have to map the file extensions you want to protect to the ASP.NET ISAPI DLL ... Go to IIS application properties and have a look to which DLL the .aspx extension is mapped - now do the same for your docs. ... I know how to secure a directory with IIS. ... file into the papers directory and secure the directory with IIS and ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • RE: IIS
    ... I believe that once the source code is open source, ... Subject: IIS ... are a myriad of options to hardening an IIS box than just patches. ... worked with many and would answer this with, the system is as secure as the ...
    (Security-Basics)
  • Re: How to secure IIS?
    ... XP as well, because even if you don't install IIS, there are still a number ... If you think Windows 98 is secure, ... easy to attack, if there's no firewall... ... IIS security checklists] 3) install firewall and antivirus, ...
    (microsoft.public.inetserver.iis.security)
  • RE: IIS
    ... Apache is much more secure by default. ... irony I run IIS but this because I know how to harden it). ... recipient, or an employee or agent responsible for delivering this ...
    (Security-Basics)
  • Re: Login Page
    ... > I am looking for a way to make my website secure. ... > authentication tied into a login page. ... Dim strADsPath ... Tom Kaminski IIS MVP ...
    (microsoft.public.dotnet.framework.aspnet)