Why proxy eating so much Bandwidth?

Discussion in 'General Marketing' started by imteaz, May 1, 2007.

  1. D_C

    D_C Well-Known Member

    Messages:
    1,107
    Likes Received:
    21
    Best Answers:
    1
    Trophy Points:
    160
    #21
    Right, like you said if you bock countries you may lose visitors. I can not think of any way to stop hotlinking... sorry.
     
    D_C, May 2, 2007 IP
  2. delusion

    delusion Guest

    Messages:
    1,195
    Likes Received:
    77
    Best Answers:
    0
    Trophy Points:
    0
    #22
    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
     
    delusion, May 2, 2007 IP
  3. htmlindex

    htmlindex Prominent Member

    Messages:
    11,748
    Likes Received:
    284
    Best Answers:
    0
    Trophy Points:
    315
    #23
    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):
     
    Last edited by a moderator: Sep 28, 2025
    htmlindex, May 2, 2007 IP
  4. DoA

    DoA Peon

    Messages:
    531
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #24
    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.
     
    DoA, May 2, 2007 IP
  5. delusion

    delusion Guest

    Messages:
    1,195
    Likes Received:
    77
    Best Answers:
    0
    Trophy Points:
    0
    #25
    @htmlindex the latest PHProxy has inbuilt hot linking and I don't think that script would work with it anyway.
     
    delusion, May 2, 2007 IP
  6. htmlindex

    htmlindex Prominent Member

    Messages:
    11,748
    Likes Received:
    284
    Best Answers:
    0
    Trophy Points:
    315
    #26
    Yeah, I fogot to mention, it works with the old version of it.
     
    htmlindex, May 2, 2007 IP
  7. imteaz

    imteaz Notable Member

    Messages:
    4,411
    Likes Received:
    255
    Best Answers:
    0
    Trophy Points:
    225
    #27
    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.
     
    imteaz, May 2, 2007 IP
  8. snapplekid13

    snapplekid13 Active Member

    Messages:
    1,475
    Likes Received:
    35
    Best Answers:
    0
    Trophy Points:
    90
    #28
    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...
     
    snapplekid13, May 2, 2007 IP
  9. agnivo007

    agnivo007 Peon

    Messages:
    4,290
    Likes Received:
    289
    Best Answers:
    0
    Trophy Points:
    0
    #29
    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)
     
    agnivo007, May 2, 2007 IP