This will let you access any google owned site. This includes: youtube, google cache, google translate, google search, gmail, google news, etc.
- Install the HTTPS Everywhere extension
- Add these rules to your /etc/hosts file
# gogo in flight
127.0.0.1 c.youtube.com
173.194.46.71 google.com
173.194.46.71 *.google.com
173.194.46.71 www.google.com
173.194.46.71 groups.google.com
173.194.46.71 appengine.google.com
173.194.46.71 developers.google.com
173.194.46.71 code.google.com
173.194.46.71 accounts.google.com
173.194.46.71 plus.google.com
173.194.46.71 apis.google.com
173.194.46.71 googlecode.com
173.194.46.71 youtube.com
173.194.46.71 *.youtube.com
173.194.46.71 googlevideo.com
173.194.46.71 *.googlevideo.com
74.125.9.166 r15---sn-vgqsen7d.googlevideo.com
74.125.9.166 r14---sn-vgqsen7d.googlevideo.com
74.125.9.166 r13---sn-vgqsen7d.googlevideo.com
74.125.9.166 r12---sn-vgqsen7d.googlevideo.com
74.125.9.166 r11---sn-vgqsen7d.googlevideo.com
74.125.9.166 r10---sn-vgqsen7d.googlevideo.com
74.125.9.166 r9---sn-vgqsen7d.googlevideo.com
74.125.9.166 r8---sn-vgqsen7d.googlevideo.com
74.125.9.166 r7---sn-vgqsen7d.googlevideo.com
74.125.9.166 r6---sn-vgqsen7d.googlevideo.com
74.125.9.166 r5---sn-vgqsen7d.googlevideo.com
74.125.9.166 r4---sn-vgqsen7d.googlevideo.com
74.125.9.166 r3---sn-vgqsen7d.googlevideo.com
74.125.9.166 r2---sn-vgqsen7d.googlevideo.com
74.125.9.166 r1---sn-vgqsen7d.googlevideo.com
173.194.46.71 googleusercontent.com
173.194.46.71 *.googleusercontent.com
173.194.46.71 gstatic.com
173.194.46.71 *.gstatic.com
173.194.46.71 ssl.gstatic.com
173.194.46.71 t1.gstatic.com
173.194.46.71 t0.gstatic.com
173.194.46.71 csi.gstatic.com
173.194.46.71 www.gstatic.com
173.194.46.71 ggpht.com
173.194.46.71 *.ggpht.com
173.194.46.71 yt3.ggpht.com
173.194.46.71 ytimg.com
173.194.46.71 *.ytimg.com
173.194.46.71 i1.ytimg.com
- (optional) Run a local wildcard DNS server
- Guide: http://renebakx.nl/7/running-a-local-wildcard-dns-server-on-your-mac/
- You have to do this if you want to watch youtube videos, since google generates new subdomains constantly
- I tried to add most subdomains to the /etc/hosts map so a lot of stuff will work without this
Okay so you need to access stuff other than google owned sites...
- Buy gogoinflight on your phone (it is 1/4th the price)
- Spoof your desktop browser to be a mobile phone via a user-agent switcher
- Log into your gogoinflight
- Unspoof
You can use this technique to cut down the cost of wifi drastically, and also to share wifi with any of your seatmates/friends around you.
There are some APIs you can call to get the current status of your flight, destination, etc.
http://airborne.gogoinflight.com/abp/ws/absServices/statusTray
{
Response: {
flightInfo: {
abpVersion: "3.1.0",
airlineCode: "AWE",
airlineCodeIata: "HP",
airlineName: "America West Airlines",
altitude: 10068.459,
departureAirportCode: "KPHX",
departureAirportCodeIata: "PHX",
destination: "JFK",
destinationAirportCode: "KJFK",
destinationAirportCodeIata: "JFK",
expectedArrival: "2014-07-15T21:42:24Z",
flightNumberAlpha: "AWE",
flightNumberInfo: "AWE425",
flightNumberNumeric: 425,
HSpeed: 263.8229,
latitude: 39.9188,
localTime: "2014-11-29T20:21:11.868Z0:0",
longitude: -86.5949,
origin: "PHX",
tailNumber: "N550UW",
utcTime: "2014-11-29T20:21:11.868Z",
VSpeed: 0.17272,
videoService: true
},
gogoFacts: "There are an average of 60,000 people en route, by air, at any one time in the United States.",
serviceInfo: {
remaining: 0,
service: "Inactive"
},
status: 200
}
}
http://utils.gogoinflight.com/weather/full/KJFK/en_US
myCallback(
{
weatherConditionSimple: {
error: null,
sky: "Heavy T-Storm",
skyIcon: 4
},
weatherForecastSimple: {
airport: "KJFK",
error: null,
forecast: [
{
dateString: "Tue,Jul 15",
day: {
sky: "T-Storms",
skyIcon: 4,
windspeed: 13
},
maxTemp: -9999,
minTemp: 71
},
{
dateString: "Wed,Jul 16",
day: {
sky: "Scattered T-Storms",
skyIcon: 38,
windspeed: 18
},
maxTemp: 82,
minTemp: 71
},
{
dateString: "Thu,Jul 17",
day: {
sky: "AM T-Storms",
skyIcon: 38,
windspeed: 11
},
maxTemp: 80,
minTemp: 67
},
{
dateString: "Fri,Jul 18",
day: {
sky: "Partly Cloudy",
skyIcon: 30,
windspeed: 9
},
maxTemp: 79,
minTemp: 66
},
{
dateString: "Sat,Jul 19",
day: {
sky: "Partly Cloudy",
skyIcon: 30,
windspeed: 9
},
maxTemp: 80,
minTemp: 69
}
],
locale: "en_US",
scale: "F",
verbosity: "L"
}
}
)
Unfortunately,
/etc/hosts
doesn’t support wildcards like*.google.com
. You’d have to list each subdomain explicitly. :(Update: see the instructions in the updated Gist.