Proxy Bandwidth Minimize Code?

Discussion in 'Programming' started by RyanL, Mar 5, 2007.

  1. #1
    I did a quick search on DP and couldnt find what i was looking for...

    Ive seen a few people who own proxies say they have put a bandwidth minimizer code on their proxy to reduce bandwidth, where would I get that code? And how does it really minimize the bandwidth and work?
     
    RyanL, Mar 5, 2007 IP
  2. bobby9101

    bobby9101 Peon

    Messages:
    3,292
    Likes Received:
    134
    Best Answers:
    0
    Trophy Points:
    0
    #2
    pretty much it just doesn't allow hotlinking, which PHProxy can block now.
     
    bobby9101, Mar 5, 2007 IP
  3. designcode

    designcode Well-Known Member

    Messages:
    738
    Likes Received:
    37
    Best Answers:
    0
    Trophy Points:
    118
    #3
    Also modify the following $_config array in index.php as,

    
    $_config            = array
                        (
                            'url_var_name'             => 'q',
                            'flags_var_name'           => 'hl',
                            'get_form_name'            => '____pgfa',
                            'basic_auth_var_name'      => '____pbavn',
                            'max_file_size'            => 1000,
                            'allow_hotlinking'         => 0,
                            'upon_hotlink'             => 1,
                            'compress_output'          => 1
                        );
    
    PHP:
     
    designcode, Mar 5, 2007 IP
  4. tjosemon

    tjosemon Banned

    Messages:
    302
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #4
    hi
    am no GURU in this,but with my limited knowledge i know this.
    i haven't come across any code which can limit band width.but PHP proxies use high band width and low system resources and CGI proxies does the opposite.
    so one way to reduce band width is using CGI.but they use lot of system resources.
    another way is to ban the ip's which you think are using up the bandwidth.for this you have to use the .htaccess file.
    i hope this is informative.
     
    tjosemon, Mar 5, 2007 IP
  5. RyanL

    RyanL Guest

    Messages:
    188
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    I need hotlinking allowed though, becuase Im #1 on many topsites, and if I dont allow hotlinking, then i loose traffic..
     
    RyanL, Mar 5, 2007 IP
  6. bobby9101

    bobby9101 Peon

    Messages:
    3,292
    Likes Received:
    134
    Best Answers:
    0
    Trophy Points:
    0
    #6
    well then don't complain about bandwidth :D
     
    bobby9101, Mar 5, 2007 IP
  7. designcode

    designcode Well-Known Member

    Messages:
    738
    Likes Received:
    37
    Best Answers:
    0
    Trophy Points:
    118
    #7
    Then limit this field

    'max_file_size' => 1000,

    :)
     
    designcode, Mar 5, 2007 IP