IIS and downloading files question
Hi all,
Sorry if this isn't the right forum, but I didn't see any specific IIS forum.
I am running IIS 7.5. Is there a setting that allows you to restrict the number of downloads a single user can perform at one time? I have seen sites where the user can only do 2 downloads, then it waits for one of them to finish before it starts the next one. I'd like to implement something similar. I'm not sure if this is something that can be done directly within IIS or if I would have to go to a coded solution.
Thanks in advance!
J
Re: IIS and downloading files question
Is that not a restriction the IE used to put on the connection to the server?
Gary
Re: IIS and downloading files question
I think what you are trying to do is something like a download site like rapidshare would do?Restrict you from downloading another file before the current one finishes?
I never tried something like that.You may have to manipulate an HttpHandler or make a javascript solution, while having in hand the user IP that is downloading.
A thought would be to try this out: http://www.codeproject.com/Articles/...g-the-Status-o .
This will make sure that the file is successfully downloaded.So by extending that you can add the user IP address at the beginning and compare it again at the end.If the IP address matches and the file has been downloaded then user can download another file.If you need more than one file then you can add the IP address that downloads to session or viewstate.When the download finishes you remove the IP address from session or viewstate.That way you can also decide how many files a user can download parallel (by p.e. searching the session for 2-3-4 etc identical IP's).