OnePlus DR-1 Quadcopter Drone Available for Purchase

OnePlus has been teasing a new product for a while now, hailing it as a … more

KDZ of Android 5.0.1 Captured for T-Mobile LG G3

T-Mobile US is yet to release the 20B Lollipop build for the LG G3. Luckily enough, you … more

Build Custom Stock Kernel with Linaro GCC 4.9.1

With this guide for Sony devices, you will learn how to build a kernel using the Linaro … more

What’s Your Biggest Reason for Not Owning an iPhone?

With XDA being a community of Android enthusiasts, it is not uncommon to see … more
Post Reply Subscribe to Thread Email Thread

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

17th October 2012, 08:16 PM |#1  
michaelmotes's Avatar
OP Senior Member
Thanks Meter: 69
120 posts
Join Date:Joined: Feb 2012
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
1,285 posts
Join Date:Joined: Mar 2012
How can we install it ?
31st October 2012, 08:14 AM |#3  
rock4hell's Avatar
Senior Member
Flag Ahmedabad
Thanks Meter: 20
117 posts
Join Date:Joined: Oct 2012
nice +1
31st October 2012, 11:02 AM |#4  
karmakula's Avatar
Thanks Meter: 5
69 posts
Join Date:Joined: Jan 2011
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: 560
2,482 posts
Join Date:Joined: Jan 2009
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
20 posts
Join Date:Joined: Sep 2012
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
11 posts
Join Date:Joined: Apr 2008
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
470 posts
Join Date:Joined: Sep 2010
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: 69
120 posts
Join Date:Joined: Feb 2012
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
119 posts
Join Date:Joined: Jun 2011

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