View Full Version : does anyone know how to limit bandwidth..
BlackDeath
March 8th, 2002, 01:33
does anyone know how to limit bandwidth on your site like when you hit your max limit a *.cgi or *.php file writes a .htaccess file or something and redirects you to another page saying bandwidth has exceeded
i need a script like this so i never go over my limit and i do use paid hosting
and also if possible for Sub Folders so i can give some of my space and limit BW at the same time
somone please help iv been asking free hosts and no one responds the reason why is everyone uses stupid auto responders :(
this is a must have script
rapmaster
March 8th, 2002, 19:14
humm the only thing I could suggest whould be a log type script that meausres the size of the file accessed, add's it up, and then checks a max size kinda thing for it. If you'd like me to attempt to wrote one for you PM me and I'll send you the details of what would have to be done(it's pretty completcated as far as I understand it)
keith
March 8th, 2002, 19:57
that'd be tough... you'd need to run everything viewed through that certain script... which people could easily get around.
Canuckkev
March 8th, 2002, 21:15
And that script would use a lot of resources and bandwidth. Your host should give you a page you can log in to see that info.
BlackDeath
March 8th, 2002, 21:20
i do get to see how much i use but your bandwidh usage can shoot up real fast
i got 2 phpBB's and phpNuke on my site and soon as my site opens its going to be hard on it lots of connections to mySQL
keith
March 8th, 2002, 21:22
i think it's safe to say transfer limiting/bandwidth throttling can only be done directly from the server/hub/what-have-you. you can't simply run a script on your site and have it limit the transfer.
solution: impossible
BlackDeath
March 8th, 2002, 21:26
ya you can a thing called .htaccess and make it redirect people to another page
when the file checks to see how much BW is used in your log and if it sees its going over the limit you set, the file will write a .htaccess file to your directory cutting off traffic
BlackDeath
March 8th, 2002, 22:00
here is a example of one i found but i know its not free
http://www.nondotcom.com/registration/youraccount/managewebsite/sitesettings.htm
and there also is a mod for apache im going to see if my host can install it for me they will install almost anything you need as long as it doesnt effect other hosted sites
http://www.cohprog.com/mod_bandwidth.html
but i want a manager based one like the one above so i can do it to other directorys to like if i wanted to host a clan site or something
keith
March 9th, 2002, 09:39
Originally posted by BlackDeath
here is a example of one i found but i know its not free
http://www.nondotcom.com/registration/youraccount/managewebsite/sitesettings.htm
and there also is a mod for apache im going to see if my host can install it for me they will install almost anything you need as long as it doesnt effect other hosted sites
http://www.cohprog.com/mod_bandwidth.html
but i want a manager based one like the one above so i can do it to other directorys to like if i wanted to host a clan site or something like i said, both of those must be installd on the server or apache, etc... and can't just simply be run from your website's space.
Powered by vBulletin® Version 4.1.7 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.