vgopi
09-11-2004, 07:13 PM
Hi,
How should I secure the files (EXE, PDF, ZIP, PPT) on a form authentication based website. Am using simple ASP/SQL to authenticate. I have a validation script running on all the ASP pages on the website, which redirects an unauthorized user to the login page. But, how should I set up the same for the EXE, PDF, ZIP, PPT, etc files? I do not want the ASP.NET/web.config related method.
I do know about the windows authentication that can be augmented to a particular folder containing all the related files. But, I would like to use the same form authentication on the website to secure the files. I mean, a single point of authentication for the website and as well as the files on the server. I want the anonymous user to be redirected to the login page when he keys in the url of the file directly in the browser (say, he should be directed to the login page if he keys in something like: http://vgopi2.site.com/important.exe)
I think this can be done with an ISAPI filter, but I need the details.
Gopi
How should I secure the files (EXE, PDF, ZIP, PPT) on a form authentication based website. Am using simple ASP/SQL to authenticate. I have a validation script running on all the ASP pages on the website, which redirects an unauthorized user to the login page. But, how should I set up the same for the EXE, PDF, ZIP, PPT, etc files? I do not want the ASP.NET/web.config related method.
I do know about the windows authentication that can be augmented to a particular folder containing all the related files. But, I would like to use the same form authentication on the website to secure the files. I mean, a single point of authentication for the website and as well as the files on the server. I want the anonymous user to be redirected to the login page when he keys in the url of the file directly in the browser (say, he should be directed to the login page if he keys in something like: http://vgopi2.site.com/important.exe)
I think this can be done with an ISAPI filter, but I need the details.
Gopi