How to limit bandwidth in a proxy?

To limit bandwidth usage in a proxy the first and foremost thing you should do is reduce the file download size.When you reduce the file download size ,your bandwidth usage will come down drastically.

Here is a fine proof of it.

As you see there is remarkable decrease in bandwidth usage by the proxy site after the file size has been set to 1MB.

If you are using a php Proxy it is easy to set file size limit.Just go to index.php in PHProxy script and find the line

max_file_size and replace the entire line with this

‘max_file_size’ => 1048576

By this you can limit the downloadable file vai proxy to just 1MB andif the visitor tries to download the file larger than 1 MB it would show an error message on the home page.

Leave a comment

Your comment