New version, based on 

https://github.com/AmauryCarrade/OranjeProxy/blob/master/index.php