Results 1 to 3 of 3

Thread: IIS and downloading files question

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Dec 2005
    Posts
    323

    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

  2. #2
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    Re: IIS and downloading files question

    Is that not a restriction the IE used to put on the connection to the server?

    Gary

  3. #3
    King of sapila
    Join Date
    Oct 2006
    Location
    Greece
    Posts
    6,763

    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).
    ἄνδρα μοι ἔννεπε, μοῦσα, πολύτροπον, ὃς μάλα πολλὰ
    πλάγχθη, ἐπεὶ Τροίης ἱερὸν πτολίεθρον ἔπερσεν·

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width