SubSpace
Bass
I'd like to protect a large file download (20-100 MB) on my website (using ASP and currently moving to ASP.net), so only people that are logged in can actually download it.
With a reasonably small file this wouldn't be a problem, you can write a script that sends the file. However, for a large file the script would time out before the download is completed.
I know that in ASP.net it's fairly easy to protect files using a HttpModule that is able to refuse access when appropriate, but files that aren't processed by the ASP.net ASAPI filter are unaffected.
On a dedicated server you could just add this mapping for executables and/or archive formats and it would work, but H-Sphere doesn't currently have the option to add custom file extensions to ASP.net processing.
Is there any way I've overlooked to protect such a file from download by unregistered members? Sure I could make the URL invisible for people that aren't logged in, but that would still leave the possibility of registered users handing out the link to unregistered users.
With a reasonably small file this wouldn't be a problem, you can write a script that sends the file. However, for a large file the script would time out before the download is completed.
I know that in ASP.net it's fairly easy to protect files using a HttpModule that is able to refuse access when appropriate, but files that aren't processed by the ASP.net ASAPI filter are unaffected.
On a dedicated server you could just add this mapping for executables and/or archive formats and it would work, but H-Sphere doesn't currently have the option to add custom file extensions to ASP.net processing.
Is there any way I've overlooked to protect such a file from download by unregistered members? Sure I could make the URL invisible for people that aren't logged in, but that would still leave the possibility of registered users handing out the link to unregistered users.