Limit the Maximum Size of File Downloads in PHProxy
0 comments
PHProxy has a setting that allows you to limit the maximum size of a file download. By default PHProxy has no limit. Setting a specific size such as 10MB or 5MB will cut back on your bandwidth usage and reduces strain on your site. The size should be entered in bytes.
Here are the instructions:
- Open your proxy site’s index.php in your favorite editor.
- Change the limit:
To set a 10MB limit, find this line…
‘max_file_size’ => -1,
…and replace it with this:
‘max_file_size’ => 10485760,
If you want to limit the max size to 5MB, use this instead:
‘max_file_size’ => 5242880,
If you would like this to be done for you, contact support and be sure to mention the size you want it set to. We are happy to assist you.
« Rename browse.php to Prevent Glype from Being Used by Bots Next Post
Prevent GoogleBot Crawl Errors on Glype Proxy »












