Right, like you said if you bock countries you may lose visitors. I can not think of any way to stop hotlinking... sorry.
You can also limit the amount of max file size your proxy can view/download. I found this way to be the best way to reduce bandwidth while still keeping my earnings high. Open up index.php and change -1 obviously means unlimited, change it to any value you want. You need to change it in KBs
Put this code at the top of your index page after the "<?php" /* PHProxy bandwidth MOD This MOD will stop any hotlinking via PHProxy, even if the clients referer is not set! Check out ProxyWebsite.com if you want to try hotlinking. */ // Change this to your domain (no 'www.') $domain="xxxxxx.com"; // If no request: if($_GET['q']!=""){ // Get referer $referer=$_SERVER['HTTP_REFERER']; // Check to see if referer is not the proxys domain $count=substr_count($referer,$domain); // If there is an outside referer: if($count==0){ // If there is a request: if($_GET['q']!=""){ // Redirect to homepage and finish script header("Location: http://www." . $domain . "/"); exit(); } } } /* END MOD */ Code (markup):
I've sent you a PM - the people above are correct, and you will not be able to get away from the bandwidth problem altogether - The only was is to change to a different host.
@htmlindex the latest PHProxy has inbuilt hot linking and I don't think that script would work with it anyway.
Well, i have just upgraded to 200 GB. lets see if 200Gb /month is enough. if not, have to upgrade again. thanks all for your help.
If you want a good host thats $25 a year... unlimited space 250gb bw a month PM me I can get you 50% off! But I would Need Something in return XD sorry...
1. Use latest phProxy 2. disable hotlinking 3. set max download size to 100kb (most pages/pics are lesser than 100kb) 4. enable gzip compression through php.ini if possible. (will eat a bit of extra cpu time, but saves on b/w) 5. Get a dedi box or VPS. (unmetered shared 10Mbps port work wonders)