Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Jan 31st, 2005, 10:36 AM   #1
Crono
Newbie
 
Join Date: Jan 2005
Posts: 2
Rep Power: 0 Crono is on a distinguished road
Download Limiting

To start off, I have no programming skills whatsoever and I need a script of some sort that can limit the downloads per a day per a user (10 downloads max per user) because my monthly transfer is only 1800 GB, and I am currently exceeding that. If that is not possible, I need a way to limit the overall daily bandwidth to 60 GB a day, such that once it reaches that, a page will be displayed when a user tries to download instead of giving access to that download. Any help is appreciate; thank you all in advance
Crono is offline   Reply With Quote
Old Jan 31st, 2005, 10:40 AM   #2
Dizzutch
Professional Programmer
 
Dizzutch's Avatar
 
Join Date: Dec 2004
Location: Worcester, MA
Posts: 441
Rep Power: 4 Dizzutch is on a distinguished road
Send a message via ICQ to Dizzutch Send a message via AIM to Dizzutch Send a message via MSN to Dizzutch Send a message via Yahoo to Dizzutch
how much are you paying?
do you have control over your webserver? there are some apache mods that limit bandwidth and downloading. If you don't i don't know anyone who has a script already done, so you might want to search google for php scripts, and see if something's available.
__________________
naked pictures of you | PFO F@H stats

Last edited by Dizzutch; Jan 31st, 2005 at 10:42 AM.
Dizzutch is offline   Reply With Quote
Old Jan 31st, 2005, 11:07 AM   #3
Pizentios
Programming Guru
 
Pizentios's Avatar
 
Join Date: May 2004
Location: Brandon, Manitoba, Canada
Posts: 2,023
Rep Power: 7 Pizentios is on a distinguished road
Send a message via ICQ to Pizentios Send a message via MSN to Pizentios
Yeah i am sure that there is a script already made out there.

i found something like that on evilwalrus.com but it's to reduce the load on the server, not by bandwidth. it is here: http://www.evilwalrus.com/viewcode.php?codeEx=428

Thinking about this problem more, i thought that you could just keep track of how many times the file has been downloaded in a month, that would give you a rough idea on how much bandwidth you are using. Then just don;t let the user dowload if the number of times the file has been downloaded is higher than 10 if that is the magic number for your file that your trying to serve.

All and all, you can probally find a script somewhere on the net that would work for you. Just search around google for a bit.
__________________
Profanity is the one language that all programmers understand.

Check out my Blog <---updated Nov 30 2007!
Pizentios is offline   Reply With Quote
Old Jan 31st, 2005, 11:17 AM   #4
Crono
Newbie
 
Join Date: Jan 2005
Posts: 2
Rep Power: 0 Crono is on a distinguished road
Yeah, I've run across a bandwidth throttling mod and I do have control of the server via DirectAdmin, but I have no idea how to install something like that. I'm willing to pay up to $20 for someone to install something like that to the specs I mentioned above; its all I can afford to pay someone, unfortunately.
Crono is offline   Reply With Quote
Old Jan 31st, 2005, 11:24 AM   #5
Pizentios
Programming Guru
 
Pizentios's Avatar
 
Join Date: May 2004
Location: Brandon, Manitoba, Canada
Posts: 2,023
Rep Power: 7 Pizentios is on a distinguished road
Send a message via ICQ to Pizentios Send a message via MSN to Pizentios
Is it your server, or is somebody hosting it for you? cause if it is hosted by somebody else, they should install it for you at no cost. But that's just how i'd run things :-)
__________________
Profanity is the one language that all programmers understand.

Check out my Blog <---updated Nov 30 2007!
Pizentios is offline   Reply With Quote
Old Jan 31st, 2005, 5:03 PM   #6
BlazingWolf
Hobbyist Programmer
 
Join Date: Sep 2004
Posts: 207
Rep Power: 5 BlazingWolf is on a distinguished road
If you really wanted to make a PHP script to do it. What I would do is create a user system, and give each download a point value depending on how big the file is, and and keep track of the users points per day and limit it to a certain number.
__________________
_______________________________
BlazingWolf
BlazingWolf is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 7:38 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC