How to open mobile websites on your PC browser
January 19th, 2009
There are a number of use-cases for which you would want to browse a mobile-optimized website on your PC. When you visit the mobile website on your PC’s web browser, the website displays the full content much to your dismay. However, when you visit the browser on a mobile, it displays a perfectly mobile optimized page.
In these cases, there are some simple steps that you can follow to open mobile websites on your PC:
- Download and install the latest version Firefox from http://www.getfirefox.com/.
- Visit Firefox Add-ons page and download the Modify Headers addon.
- Install the addon and restart firefox.
- From the firefox window, select “Tools” menu & click on “Modify Headers” option (Tools -> Modify Headers).
- The window will open as shown:
Click to enlarge - Below the title bar, there’s a drop down. Select “Add” from the drop down box.
- Now in the text box next to the drop down, type “user-agent”.
- In the third text box, paste this string – Mozilla/5.0 (SymbianOS/9.2; U; Series60/3.1 NokiaE51-1/100.34.20; Profile/MIDP-2.0 Configuration/CLDC-1.1 ) AppleWebKit/413 (KHTML, like Gecko) Safari/413.
- Click on “Save”.
- The screen should look like as shown in the screen shot below:
Click to enlarge - Using the buttons on the Modify Headers addon window, you can enable or disable particular items.
- That’s it! Whenever you want to view a mobile website, just go to Tools->Modify Headers and enable the user agent you added in step 8. When you don’t need it, just open this window and disable it.
- You can close addon window after you have enabled/disabled items.
- Enjoy! 🙂
Behind the Scenes:
Most mobile websites make use of the HTTP header called “User-Agent”. This header tells the server what kind of web browser the user has. So, mobile websites usually look for the name of the device manufacturer in the User-Agent header. If it matches one of the manufacturers then the mobile optimized web page is sent.
That’s about it! Hope you enjoyed this brief.
Now go and figure out how to display the iPhone version of Facebook on your PC 😉
November 15th, 2012 at 5:15 pm
Thanks. If you have limited bandwidth like me (3G) this is really good. Works really well/
November 18th, 2012 at 8:30 pm
Thanks a lot buddy
December 7th, 2012 at 11:45 am
great … very helpful …thanks dude … 🙂
May 27th, 2013 at 3:03 pm
Very nice info, very useful to test my mobile version of website on my laptop.
Thanx.
July 2nd, 2013 at 8:02 am
thanks so much..use this header
Mozilla/5.0 (Linux; U; Android 2.1-update1; de-de; GT-I9000 Build/ECLAIR) AppleWebKit/530.17 (KHTML, like Gecko) Version/4.0 Mobile Safari/530.17
for browse like android device….it looks great..
November 3rd, 2013 at 2:33 am
Thank you so much Anand!
You saved me ass on recording a prototype app, I came across your blog just minutes before my submission when my original plan had failed!
Thank youu!