Im running a proxy with about 800 uniques a day. Im hosting the proxy on a dedicated server with 1GB ram. The problem is last month my proxy used only 60GB bandwidth but on march until today ,18 days it has used 102GB..Is it any problem and why suddenly the bandwidth usage increased??
I'm not sure you have the sudden increase but I found PHProxy was a right resource hog. I went through 500mb in a day and since swapping to CGI Proxy I haven't gone past 60mb a month.
I'm using PHProxy 0.5 and there is a option in the index.php file that limit the size of the page I've set it up to 10MB and don't have any problems with the bandwidth since. Videos and large files aren't loaded.
Limiting your file size will reduce your BW greatly. I never saw the need for it even though my proxy was using 15-20GB of BW per day.
some visitor probably downloaded a massive movie or file and then you're bandwidth gets chraged for it Just reduce the file size limit and you'll be fine Mark
I am hosting three proxy sites in same account. My hosting is http://www.iwhic.com I have already limited the file size to 5MB in all the three sites and tested downloading the file size exceeding the limit. I got the following error which means that users cant download huge chunk of files. Resource Error: An error has occured while trying to browse through the proxy. The file your are attempting to download is too large. Maxiumum permissible file size is 10.00 MB Requested file size is 24.56 MB Code (markup): But from April 1st to April 6th which is today It already has consumed 92GB. My monthly bandwidth is 100GB. Kindly help me what should I do in this case ? How can I stop this leakage ? Also in the Awstats nothing is shown everything is blank ? Could this be a hosting problem ? Please help me. Sincerely Chuman.
Where do I put this code ? when I put this code in index.php I get errors. /* PHProxy bandwidth MOD 1.1 This MOD will stop any hotlinking via PHProxy, even if the clients referrer is not set! */ // allow hotlinking from these sites, separate by comma (make sure you enter your site’s domains) $domains=â€www.nepalproxy.com,nepalproxy.comâ€; // convert domains into an array $domains=explode(â€,â€,$domains); // if there is a request: if($_GET[’q']!=â€") { // get referer $referer=explode(â€/â€,($_SERVER[’HTTP_REFERER’])); // if the referer is not allowed: if(!in_array($referer[2],$domains)) { // redirect to homepage and finish script header(â€Location: http://â€.$domains[0].â€/â€); exit(); } } /* END MOD */ PHP: Kindly Help Me.