6, July 2008

multiple downloads with download manager - webmaster forum

 
Webdigity webmaster forums
This forum shares its ad revenue with its members!
[ Home | Help | Search | Forum's Shop | Archive | Login | Register | Webmaster Directory ]
Webdigity Webmaster Forums  >  Web hosting talk  >  Configuring your server  >  Apache web server
Topic: multiple downloads with download manager
« previous next »
Pages: [1] Print

Author Topic: multiple downloads with download manager  (Read 1256 times)
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6272
38458 credits
Members referred : 374


It's time to use PHP5!


« on: May 03, 2007, 06:19:13 PM »

Hi,

I have a problem with file downloads via http and clients using a download manager.

people using settings like multiple channels to download a file faster.

with the result that these downloads eating more bandwidth than the size from a file is there a way to provide only one connection for each IP or something?

I know there are download sites which allow max 2 downloads at the same time. how do they do this?
« Last Edit: May 05, 2007, 08:15:39 PM by Olaf »


Last blog : 4th of July Lottery from TemplateMonster.com
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 7931
40535 credits
Members referred : 3



Re: multiple downloads door download manager
« Reply #1 on: May 03, 2007, 08:01:35 PM »

Of course there is Wink

You can do this by monitoring who is downloading using a database for it, and allow someone to download only if his/her ip is not in the database.

To make this script accurate you will also need to execute this : (php)

ignore_user_abort(true);


Trial and Error my two best teachers Cool
Promote your blog for free.... Visit through proxy

Last blog : Keep it Legal - Tims guide to legal notices
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6272
38458 credits
Members referred : 374


It's time to use PHP5!


« Reply #2 on: May 03, 2007, 08:52:16 PM »

 Huh

I was actually looking for a solution like this one:

http://modules.apache.org/search?id=241 Visit through proxy

maybe an option that doesn't need some installment, is there maybe something possible with cURL?


Last blog : 4th of July Lottery from TemplateMonster.com
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 7931
40535 credits
Members referred : 3



« Reply #3 on: May 03, 2007, 09:05:11 PM »

In that case you can use this module with htaccess in your download directory this way :

Code:
<IfModule mod_limitipconn.c>
    <Location /downloadDirectory>
        MaxConnPerIP 1
    </Location>
  </IfModule>

Trial and Error my two best teachers Cool
Promote your blog for free.... Visit through proxy

Last blog : Keep it Legal - Tims guide to legal notices
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6272
38458 credits
Members referred : 374


It's time to use PHP5!


« Reply #4 on: May 03, 2007, 09:09:06 PM »

In that case you can use this module with htaccess in your download directory this way :

Code:
<IfModule mod_limitipconn.c>
    <Location /downloadDirectory>
        MaxConnPerIP 1
    </Location>
  </IfModule>

yeah great example thanks, is this the only way to check if this module is available?


Last blog : 4th of July Lottery from TemplateMonster.com
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 7931
40535 credits
Members referred : 3



« Reply #5 on: May 03, 2007, 09:16:43 PM »

This module is not available in default installations of Apache.

You should download the source and compile it, or search for a repository that has it.

Trial and Error my two best teachers Cool
Promote your blog for free.... Visit through proxy

Last blog : Keep it Legal - Tims guide to legal notices
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6272
38458 credits
Members referred : 374


It's time to use PHP5!


« Reply #6 on: May 03, 2007, 09:58:46 PM »

This module is not available in default installations of Apache.

You should download the source and compile it, or search for a repository that has it.

is there an alternative for that module?


Last blog : 4th of July Lottery from TemplateMonster.com
Robot
My Name is Enigo Montoya
****
Posts: 32
30 credits
Members referred : 0



Web Development Blog
« Reply #7 on: May 05, 2007, 08:17:08 PM »

Trackback from Web Development Blog Visit through proxy

These days a customers website has generated a large amount of traffic because a client site has offered some “bigger” file downloads to their visitors. Normally there is nothing wrong with this kind of downloads on most of the websites, ...
« Last Edit: May 05, 2007, 08:18:01 PM by Olaf »
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6272
38458 credits
Members referred : 374


It's time to use PHP5!


« Reply #8 on: May 11, 2007, 03:18:09 PM »

Of course there is Wink

You can do this by monitoring who is downloading using a database for it, and allow someone to download only if his/her ip is not in the database.

To make this script accurate you will also need to execute this : (php)

ignore_user_abort(true);



Nick, I created a script using the IP address and a database to check downloads what about this function:

ignore_user_abort(true);

why do I need this?

look people using a DL manager are opening several channels to download a file and after the file is downloaded the other files are only partly downloaded.


Last blog : 4th of July Lottery from TemplateMonster.com
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 7931
40535 credits
Members referred : 3



« Reply #9 on: May 11, 2007, 05:40:45 PM »

You need the ignore_user_abort, because otherwise if the user aborts or the connection stops, the ip wont be deleted from the database.

Trial and Error my two best teachers Cool
Promote your blog for free.... Visit through proxy

Last blog : Keep it Legal - Tims guide to legal notices
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6272
38458 credits
Members referred : 374


It's time to use PHP5!


« Reply #10 on: May 11, 2007, 11:30:27 PM »

You need the ignore_user_abort, because otherwise if the user aborts or the connection stops, the ip wont be deleted from the database.

OK I  understand...thanks


Last blog : 4th of July Lottery from TemplateMonster.com
Trackback URI for this entry : http://www.webdigity.com/trackback.php?topic=6502
Tags : download Bookmark this thread : Digg Del.icio.us Dzone more....

Topic sponsors:
Get a permanent link here for $1.99!


Pages: [1] Print 
Webdigity Webmaster Forums  >  Web hosting talk  >  Configuring your server  >  Apache web server
Topic: multiple downloads with download manager
« previous next »
Jump to:
User Area
Welcome, Guest. Please login or register.
Did you miss your activation email?
Jul 06, 2008, 04:44:58 AM





Login with username, password and session length

Donate to our community, and get a permanent link back to your site!

Donate to our community, and get a permanent link back to your site!


Forum Statistics
Total Posts: 35.533
Total Topics: 7.344
Total Members: 3.647
Tutorials : 56
Resources : 143
Designs : 220
Latest Member: pawan

16 Guests, 3 Users online :

11 users online today:



Readers

Web Design Gallery · Whois Lookup · Pagerank · Tag Browsing · Lo-fi version · Syndication · Webmaster forum history · Advertise
Developed by HumanWorks © 2005 - 2008 Webdigity webmaster community · sublime directory
Webdigity Webmaster Forums | Powered by SMF 1.0.12. © 2001-2005, Lewis Media. All Rights Reserved.