Glype & phproxy proxy script Filesize limit

Discussion in 'Site & Server Administration' started by misoo83, Dec 25, 2008.

  1. #1
    Hi can someone help me , i have two sites one with glype proxy script and one with phpproxy script and dont know how to make filesize limit, i own 300 gb bandwith on my hosting and 12 sites but this two proxy site's this month spent over 120 gb of bandwith and now i must somehow put filesize limit

    and what is best filesize how many mb to allow to download via proxy ?

    Thanks :)
     
    misoo83, Dec 25, 2008 IP
  2. bluemouse2

    bluemouse2 Well-Known Member

    Messages:
    4,055
    Likes Received:
    130
    Best Answers:
    0
    Trophy Points:
    185
    #2
    I set filesize limit to 1 MB for example
     
    bluemouse2, Dec 25, 2008 IP
  3. Bohra

    Bohra Prominent Member

    Messages:
    12,573
    Likes Received:
    537
    Best Answers:
    0
    Trophy Points:
    310
    #3
    i think your php settings are the proxy's settings
     
    Bohra, Dec 25, 2008 IP
  4. misoo83

    misoo83 Peon

    Messages:
    109
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #4
    thanks friends i found on settings phproxy 'max_file_size' => -1,

    hehe i will change it now :)

    i changed this settings from 'max_file_size' => -1, to 'max_file_size' => 524288,
    and this

    if ($_config['max_file_size'] != -1 && $_content_length > $_config['max_file_size'])
    to
    if ($_config['max_file_size'] != 524288 && $_content_length > $_config['max_file_size'])

    i hope that is good :(
     
    misoo83, Dec 25, 2008 IP
  5. misoo83

    misoo83 Peon

    Messages:
    109
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #5

    thanks but how to do that ?:)
     
    misoo83, Dec 25, 2008 IP
  6. bluemouse2

    bluemouse2 Well-Known Member

    Messages:
    4,055
    Likes Received:
    130
    Best Answers:
    0
    Trophy Points:
    185
    #6
    when using glype you have an administration area for the script (admin.php) and you can easily change it there
     
    bluemouse2, Dec 25, 2008 IP
  7. misoo83

    misoo83 Peon

    Messages:
    109
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #7
    ok tnx :)
     
    misoo83, Dec 25, 2008 IP