Glype proxy (link from the previous post) is quite universal and simple solution. Supports the authentication, URL encoding, and encoding of the content, block cookies, javascript. All you need is apache + php, for example Assembly wamp/lamp. Setting is not required, you just need to copy the script in the www directory of the server.