Groups | Blog | Home
all groups > iis security > october 2005 >

iis security : limiting access to files with asp.net


Daniel
10/14/2005 4:58:55 PM
limiting access to files with asp.net

is there any way i can make a file only accessible to certain users of my
website? my files are to large to copy to a temp directory and they are of
many types, .exe .xsl .xml etc. i want an href to each file but only allow
users who have the right login-info in their session variable to get to the
files in their directory. is there something built into .net for doing this?
do i need to do some kind of isapi filter and then stream them?

Ken Schaefer
10/17/2005 12:00:00 AM
Check out this month's IIS Insider article for the easiest way to do this:
http://www.microsoft.com/technet/community/columns/insider/default.mspx

The are other, more complicated, ways of doing this that give you more
flexibility as well.

Cheers
Ken

[quoted text, click to view]
: limiting access to files with asp.net
:
: is there any way i can make a file only accessible to certain users of my
: website? my files are to large to copy to a temp directory and they are of
: many types, .exe .xsl .xml etc. i want an href to each file but only allow
: users who have the right login-info in their session variable to get to
the
: files in their directory. is there something built into .net for doing
this?
: do i need to do some kind of isapi filter and then stream them?
:
:

AddThis Social Bookmark Button