I am designing a website for a client who would like to offer privileged PDF downloads to site members only. I have an ASP script in place that sets up a members only area using session variables. I can of course only provide the links to the PDF documents on only those pages, but that would not stop someone from downloading the documents if they know the URL.
I have ASP 3.0, ASP.NET 2.0 and PHP 5 at my disposal.
I have toyed with several imperfect solutions;
- I cannot have restricted directories (like in Apache) because my current web host does not offer them.
- The "force download" scripts I have found to work in ASP are sketchy at best - I find that when a file is downloaded from an off-line folder it can be corrupted when the user tries to open it
- I'd like to avoid having it be sent in an automatically generated e-mail, because I feel this is slow and cumbersome and would not provide a very good user experience on the site.
Any suggestions would be appreciated - thanks,