Hi, I am your host Abhas.
And we have a particularly common problem in our college networks - nefarious draconian stop-everything proxy (namely, squid). All non-http-https ports are blocked alongwith url and content blocking. But hey, that should never stop you from useful stuffs like git access (using git urls). Obviously, just use the mighty TOR.
BUT, its a SOCKS5 proxy - which is not a huge problem in itself, but usually requires explicit support from applications. For eg, everyones favourite
youtube-dl doesnt seem to support this. But most allow http or https proxy. Shit, only if we could use TOR over http !!
Enters Polipo, advertised simply as "a caching web proxy"
But it has other super powers too. You can forward you other http/https/socks proxy though it over http. So, how to use it?
Actual steps :
- Install Polipo. [ For windows: I used this, but other versions should work too ]
config.sampleto incorporate this changes:
proxyAddress = "0.0.0.0" socksParentProxy = "127.0.0.1:9150" socksProxyType = socks5
socksParentProxyis your tor proxy
Run polipo as
polipo.exe -c "config.sample"and with a few warnings, it should just run.
- Now go ahead and use
127.0.0.1:8123as your http_proxy, everything should pass through tor.
- You should theoritically be able to put the config file in
~/.polipoand call polipo without the -c parameter. But my initial tries didnt result in any success, so I tried doing it the easy way.
- Reading parts of its manual page, I think its pretty powerful with custom access control, offline dns + page caching and header changing capabilities. Maybe, I will give those some try later, looks very interesting to me. For eg. if we save a html file (along with its linked content like css,js in a folder, the default behaviour) and tell this proxy to redirect live links from that offline html page to saved contents. Basically, fix the reason why a saved webpage almost never works offline.