Code, Code, Revolution!
It’s a shame Apple hasn’t added HTTP proxy support in the Safari app! I just spent an hour or so investigating compression addons and ad-blockers for squid thinking it would greatly improve the browsing speed on my iPhone. I found most of what I was looking for too, using Squid 3.1 there are addons for gzip compression and ad-blocking. However, I couldn’t find an addon that will re-compress images into lower quality but maybe that can be done with ImageMagick somehow?
Then it hit me: the damn phone only support http proxies over WLAN, and that’s not really when I would want to use it! Now I wonder if Apple has intentionally ignored proxy support in the Safari app to please the service providers? A smart http proxy could reduce the transferred text for each page view from a non compressing site by somewhere around 70-80%, removing ads will also reduce a larg amount of data, effectively reducing the end users data transfer fees and at the same time speed up page loads. If images were removed altogether we’re talking huge data savings but that comes with a major experience reduction.
But is there really no way we can manipulate what’s being downloaded over sometimes expensive 3G networks? YES there is! The iPhone does support VPN over 3G, and what can be enabled for a VPN connection? A proxy of course! Setting all this up is a bit of a hastle but we already have a VPN at work so I installed Squid on my “server” (the mac mini PPC in my closet that previously hosted this blog) and it worked very well over the VPN. Unfortunately the gzip compression addon doesn’t work for some reason but the ad-block works like a charm.
If you don’t have a VPN server there are a few available for Linux: OpenVPN, FreeS/WAN, Poptop.
Now if there was only an image re-compression plug-in for Squid, that would be awesome!
With this blog I try to provide useful tips and solutions for programming .NET, Objective-C and more. My name is Björn Sållarp, and I love writing code.
It's now available on AppStore. It's free and open source. Read more about the app here: Swedish / English
Viperet
August 26th, 2009 at 8:05 am
Try Ziproxy for http gzip compression and image re-compression. It also works good with BFilter to remove ads
Thomas
January 9th, 2010 at 1:10 pm
Thanks! I was thinking about using Proxy with the iPhone just a few days ago, will give it a try.
Myspace Proxy
February 1st, 2010 at 9:39 am
Wow thanks its really great for iphone users. I have already tried this method its really worth, Thanks again for the detail one.
Maarten Billemont
March 15th, 2010 at 3:33 pm
Note that the iPhone doesn’t support OpenVPN’s method of establishing a VPN. (At least not without jailbreaking and using http://github.com/jfx2006/OpenVPN_iphone).
Karl
November 7th, 2010 at 12:51 pm
If you want something to compress images, downgrade jpg quality, block ads and compress the http content, google for Rabbit Proxy – it will happily sit in front of squid and send smaller pages to the iphone/ipad.
Connection problem - proxy
January 14th, 2011 at 7:38 pm
[...] I've found is this : iPhone Safari – How to use a http proxy over 3G (cellular network) | blog.sallarp.com What you're looking or is easy to do over WiFi, but not as easy over 3G. I know this link is a [...]
yegle
April 30th, 2011 at 5:05 pm
Well, iPhone **DOES** support http proxy over cellular network.
Check out here.
http://www.owind.com/pub/binary/2011/04/30/%e6%80%8e%e4%b9%88%e5%9c%a8%e6%b2%a1%e8%b6%8a%e7%8b%b1%e7%8e%af%e5%a2%83%e4%b8%8b%e7%bb%99-ios-%e8%ae%be%e7%bd%ae-apn-%e4%bb%a3%e7%90%86/
This blog post is in Chinese, you should be able to Google Translate it