HTC’s New Ad Campaign And What It Really Means

HTC has just released three new blind test adverts comparing app loading … more

XDA Picks: Best Apps of the Week (June 27 – July 4)

Apps are at the front and center of any smartphone experience, and with over a … more

HTC One M9 Developer Edition Android 5.1 OTA

The Developer Edition of the HTC One M9 is receiving an over-the-air update to Android 5.1. … more

Index Project For XDA Device Subforums

Another ambitious project from the collaborative efforts of Recognized Contributors and Forum … more

[APP][ADD-ON] Firefox Mobile Add-On to change the X-Forwarded-For Header

120 posts
Thanks Meter: 70
By michaelmotes, Senior Member on 17th October 2012, 08:16 PM
Post Reply Subscribe to Thread Email Thread
The add-on will allow a user to set the X-Forwarded-For header using Firefox Mobile.

Download Here
or Here

I got tired of looking for a way to do this, so I did it my self and thought I would share.

Tested with Firefox Mobile 16.0.1.
Minimum version: 15.0
Maximum version: 16.*

With this add on for firefox, a mobile user can access content from a website that restricts users to a certain region.

For instance, my mobile phone connects to gateways in Oklahoma or Texas, it switches between the two, to connect to the internet. But, I live in Arkansas. So when using watchESPN website to stream football games, if the game is blacked out in the the state of my gateway, then watchESPN will block me from watching the game, even if it isn't blocked in Arkansas.

However, if you set the X-Forwarded-For header to an IP from a state that isn't blacked-out then watchESPN works. To find an IP just google "(state) ip address" and some example IPs or IP ranges should appear.

This is based on code by Jakob Landbo, his X-Forwarded-For add-on for Firefox Desktop, which is based on this MDN article. To recompile it for Firefox Mobile, I had to change the entire way the preferences (IP setting) worked, import component utility services explicitly, and build it against the latest Add-On SDK with the "--force-mobile" and "--mobile-app firefox" commands. Rewriting the preferences code to work with Firefox Mobile was the brunt of what I did.
Last edited by michaelmotes; 17th October 2012 at 11:10 PM.
The Following 19 Users Say Thank You to michaelmotes For This Useful Post: [ View ]
31st October 2012, 07:12 AM |#2  
Senior Member
Thanks Meter: 294
How can we install it ?
31st October 2012, 08:14 AM |#3  
rock4hell's Avatar
Senior Member
Flag Ahmedabad
Thanks Meter: 20
nice +1
31st October 2012, 11:02 AM |#4  
karmakula's Avatar
Thanks Meter: 5
Good add on but how do we install it or use it???
31st October 2012, 05:38 PM |#5  
malavan's Avatar
Senior Member
Flag stockholm
Thanks Meter: 586
Originally Posted by karmakula

Good add on but how do we install it or use it???

31st October 2012, 07:16 PM |#6  
Junior Member
Thanks Meter: 3
Can this be used to watch hulu or something from Canada?

EDIT: YES IT CAN!!! Thanks Dev!
Last edited by hedphones; 31st October 2012 at 07:23 PM. Reason: Tested
31st October 2012, 08:29 PM |#7  
Junior Member
Thanks Meter: 1
Originally Posted by hedphones

Can this be used to watch hulu or something from Canada?

EDIT: YES IT CAN!!! Thanks Dev!

Errr, no. It can be used to browse the site, but doesn't seem to work with streaming. I tried a few IP Addresses from Dallas and Houston, all of which gave me a geographical error when I tried to stream on Hulu.
1st November 2012, 01:07 AM |#8  
qreffie's Avatar
Senior Member
Flag Seattle
Thanks Meter: 28
Can this be used to watch/listen to BBC radio/TV shows and various other world streaming services? I've been wanting to get BBC Radio 1 and 1Xtra streaming to my phone for a while now as well as use some other UK based Television shows that don't allow US customers to stream.
1st November 2012, 03:45 AM |#9  
michaelmotes's Avatar
OP Senior Member
Thanks Meter: 70
To install it just visit the download link from Firefox mobile and Firefox will install it. Then, go to the add on menu to change the IP that it sends.

This just adds an X-Forwarded-For header to all requests, so any page that looks for that header to determine where you are will be fooled. I know watchESPN works this way. The others, hulu, bbc, etc., I don't know. But, many streaming sites accept the header as valid because most public proxies that people use to try to avoid the geographical restrictions add the header, and so, streaming sites use it as an proxy by-pass counter-measure. This add-on allows you to exploit that counter-measure.
1st November 2012, 03:46 AM |#10  
Senior Member
Thanks Meter: 5

Does it work like a VPN ? like if i'm in China i can go on blocked website ?
Last edited by digitalH; 1st November 2012 at 03:55 AM.
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes