Prevent simultaneous download?

Prevent simultaneous download?

Posted by: GokuMew2
Posted on: 2007-01-30 16:36:00

Hi! Does anyone know of any free scripts that will prevent users from downloading more than one file at a time based on their IP address? I've found Bandwidth Manager but the script isn't free... I know I can set the max number of connections via htaccess but that's not the same.

I really need something that prevent simultaneous downloads so any help would be appreciated. Thanks in advance!

Re: Prevent simultaneous download?

Posted by: scjessey
Posted on: 2007-01-30 16:45:00

The obvious question is why? What's wrong with simultaneous downloads? That being said, it shouldn't be too difficult to build something. A simple MySQL table holding the IP address and a timestamp that includes a reasonable expiry time that can then be checked before allowing a new download would allow you to throttle the worst offenders.

Re: Prevent simultaneous download?

Posted by: GokuMew2
Posted on: 2007-01-30 16:57:00

Well, with lots of people accessing a site at the same time, you wouldn't want it to be bogged down by some users hogging the bandwidth.

I don't know how to script so... =(

Re: Prevent simultaneous download?

Posted by: scjessey
Posted on: 2007-01-30 17:02:00

Don't forget that DreamHost gives you a lot of bandwidth.

Re: Prevent simultaneous download?

Posted by: GokuMew2
Posted on: 2007-01-30 17:06:00

Yeah but actually, this isn't for my site hosted with DH. =x

Re: Prevent simultaneous download?

Posted by: scjessey
Posted on: 2007-01-30 17:08:00

In reply to:

Yeah but actually, this isn't for my site hosted with DH


Oh well. You're buggered then, aren't you?

Re: Prevent simultaneous download?

Posted by: ardco
Posted on: 2007-01-30 18:13:00

In reply to:

Oh well. You're buggered then, aren't you?


Not necessarily. Somebody who's actually knowledgeable and trying to be helpful could come along.

Re: Prevent simultaneous download?

Posted by: scjessey
Posted on: 2007-01-31 07:07:00

In reply to:

Not necessarily. Somebody who's actually knowledgeable and trying to be helpful could come along.


I was being helpful. I just don't think it is reasonable to give support assistance for domains not hosted by DreamHost. I noticed you didn't help either, oh wise one.

Re: Prevent simultaneous download?

Posted by: ardco
Posted on: 2007-01-31 16:38:00

In reply to:

I just don't think it is reasonable to give support assistance for domains not hosted by DreamHost.


I didn't know the answer, Seiler.

Re: Prevent simultaneous download?

Posted by: scjessey
Posted on: 2007-01-31 17:06:00

In reply to:

I didn't know the answer, Seiler.


I think that's the second time you've called me "Seiler", BcoolB? My name is Simon, and my username is scjessey. "Seiler" is somebody else (Mike). You may call me Simon, scjessey, Sir, or even Your Majesty if you wish.

Re: Prevent simultaneous download?

Posted by: ardco
Posted on: 2007-01-31 17:08:00

Okey dokey, Bruce.

Tags: free scriptsip addressmax numberhtaccessthanks in advanceappreciated