FORUMS

OnePlus 2 Teardown, Major Android Vulnerability – XDA TV

The OnePlus 2 has been officially released. That and much more news is … more

What Do You Think About Fingerprint Scanners?

More and more phones are featuring fingerprint scanners, and with many promising … more

What’s Next for Samsung and Its Flagships?

If we were to say that the Galaxy S6 was a leap of faith made by Samsung, we … more

The Ultimate Showcase of dBrand Skins

In the search for ways to protect, accessorize, and personalize; a user has many options. One … 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
 
More
How can we install it ?
31st October 2012, 08:14 AM |#3  
rock4hell's Avatar
Senior Member
Flag Ahmedabad
Thanks Meter: 20
 
More
nice +1
31st October 2012, 11:02 AM |#4  
karmakula's Avatar
Member
Thanks Meter: 5
 
More
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
 
More
Quote:
Originally Posted by karmakula

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



+1
31st October 2012, 07:16 PM |#6  
Junior Member
Thanks Meter: 3
 
More
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
 
More
Quote:
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
 
More
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
 
More
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
 
More
Hello,

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.
1st November 2012, 03:50 AM |#11  
michaelmotes's Avatar
OP Senior Member
Thanks Meter: 70
 
More
Quote:
Originally Posted by hedphones

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

EDIT: YES IT CAN!!! Thanks Dev!

Quote:
Originally Posted by Katsuro

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.

It could be that this worked for hedphones and not for katsuro becuase katsuro's carrier strips the x-forwarded-header from all mobile request. Also, it could be that you tried it over WIFI, instead of mobile data, because I know my WIFI router strips the x-forwared-header from the request. You can check to see if the x-forwared-for header is being forwared by visiting whatismyip.com after installing and enabling it.

Read More
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes