I want to have a folder containing files - pdf's for argument's sake - that are only accessible to logged in users. So if someone typed:
www.someurl.com/pdfs/mypdf.pdf
They would get an access denied message. I could do this on Apache just using a .htaccess file in the folder. What's the IIS equivalent?
Secondly I then need to display the file for logged in users using something like:
www.someurl.com/showpdf.aspx?mypdf.pdf
Again using PHP on Apache although the folder is secure to external users local files can access the folder and I simply use Readfile('filename'); to output the file to the browser (as well as some headers to tell the browser the content-type). How would I do this is ASP.Net. I'm thinking along the lines of reading the file into a stream and then outputting it to the Response.OutputStream somehow.
Thanks.
www.someurl.com/pdfs/mypdf.pdf
They would get an access denied message. I could do this on Apache just using a .htaccess file in the folder. What's the IIS equivalent?
Secondly I then need to display the file for logged in users using something like:
www.someurl.com/showpdf.aspx?mypdf.pdf
Again using PHP on Apache although the folder is secure to external users local files can access the folder and I simply use Readfile('filename'); to output the file to the browser (as well as some headers to tell the browser the content-type). How would I do this is ASP.Net. I'm thinking along the lines of reading the file into a stream and then outputting it to the Response.OutputStream somehow.
Thanks.