How To Improve Your Proxy Sites
continue to my last post how to make money wit proxy sites there are two things you should do for any new proxy site im assuming you using PHPProxy Script as its’ the most popular proxy script these days.
limit the max file size
Some people use proxy sites to download largo files through your proxy usually they download files from sites they cant access so they using proxy sites, this will kill you bandwidth and cost you more and more for hosting so you will always need more bandwidth.
so it’s pretty obvious you need to limit the max files on your proxy to help you save bandwidth on your hosting,
open up index.php and search for max_file_size and change you need to change it to something reasonable
for example 5 mb would be good the value has to be written in Bytes so 1MB = 1*1.24*1.24
change it to 5 MB = 5242880
it’s highly recommend that you don’t put value large than 10 MB .
Disallow Hotlinking on PHPProxy
Disallowing hotlinking on your proxy site allow you to prevent people from linking through you proxy sites and save your bandwidth
open up index.php and put the folllwoing code just right after the <?php
and replace site with your proxy url
/*
Start MOD
*//*
PHProxy bandwidth MOD 1.1 by Rhett Canney (Billy Connite)
This MOD will stop any hotlinking via PHProxy, even if the
clients referer is not set!
*/// allow hotlinking from these sites, seperate by comma (make sure you eneter your site’s domains)
$domains=”www.site.com,site.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
*/




















