28, May 2012

multiple downloads with download manager - webmaster forum

 
Webdigity webmaster forums
[ 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
Instabuck - The easy way to sell digital products online

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


It's time to use PHP5!


« on: May 03, 2007, 05: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, 07:15:39 pm by Olaf »

I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 5799
46391 credits
Members referred : 3



Re: multiple downloads door download manager
« Reply #1 on: May 03, 2007, 07: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
Join us @ facebook or twitter

Last blog : Butterfly Marketing 2.0
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #2 on: May 03, 2007, 07:52:16 pm »

 Huh

I was actually looking for a solution like this one:

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

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

I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 5799
46391 credits
Members referred : 3



« Reply #3 on: May 03, 2007, 08: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
Join us @ facebook or twitter

Last blog : Butterfly Marketing 2.0
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #4 on: May 03, 2007, 08: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?

I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 5799
46391 credits
Members referred : 3



« Reply #5 on: May 03, 2007, 08: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
Join us @ facebook or twitter

Last blog : Butterfly Marketing 2.0
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #6 on: May 03, 2007, 08: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?

Robot
My Name is Enigo Montoya
****
Posts: 32
30 credits
Members referred : 0



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

Trackback from Web Development Blog

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, 07:18:01 pm by Olaf »
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #8 on: May 11, 2007, 02: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.

I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 5799
46391 credits
Members referred : 3



« Reply #9 on: May 11, 2007, 04: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
Join us @ facebook or twitter

Last blog : Butterfly Marketing 2.0
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #10 on: May 11, 2007, 10: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

Trackback URI for this entry : http://www.webdigity.com/trackback.php?topic=6502
Tags : download Bookmark this thread : Digg Del.icio.us Dzone more....

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?
May 28, 2012, 10:23:13 pm





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!






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