Preventing access to all file types in a directory using ASP.NET

N

nickk

Is it possible to prevent access to all files in a (virtual) directory using
ASP.NET and without using an ISAPI filter? I'm quite happy using the standard
classes for authentication and authorisation for ASP.NET (.aspx) pages, but I
want to stop unauthorised users accessing plain HTML pages, PDF files and SWF
files in a directory as well. Can I use HTTPModule for this? Basically, I
want to interrogate and filter all requests in a particular directory, but I
don't want to have to learn C++ just to complete this piece of work.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,015
Latest member
AmbrosePal

Latest Threads

Top