![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Jan 2005
Posts: 2
Rep Power: 0
![]() |
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
![]() |
|
|
|
|
|
#2 |
|
Professional Programmer
|
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. Last edited by Dizzutch; Jan 31st, 2005 at 10:42 AM. |
|
|
|
|
|
#3 |
|
Programming Guru
![]() ![]() |
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! |
|
|
|
|
|
#4 |
|
Newbie
Join Date: Jan 2005
Posts: 2
Rep Power: 0
![]() |
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.
|
|
|
|
|
|
#5 |
|
Programming Guru
![]() ![]() |
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! |
|
|
|
|
|
#6 |
|
Hobbyist Programmer
Join Date: Sep 2004
Posts: 207
Rep Power: 4
![]() |
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 |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|