User-Agent Spoofing for Testing Mobile Devices

If you are developing on mobile applications, it’s not always so easy to continue to test on your iPhone or Android devices. A trick around doing that work is to modify your User-Agent and screen dimensions in order to trick your current browser into making the server think you are coming from a mobile browser. For example, if you are testing iOS or Android browsing, it’s very easy to get a typical WebKit browser, such as Chrome, and trim down the responses to trick your server.

You can do this right from the developer tools. Even Internet Explorer has these replacements written into the developer tools. Simply open up your Developer Tools:

And then click the Settings button in the lower right corner. You will then see a settings tab for “Overrides” where you can modify your “User Agent”. I suggest a version of Firefox.

This is still pretty new for Chrome, so often times the spoof is not “sticky”. For better solutions, I would suggest installing a User-Agent spoofer extension, which can force all of your request headers to be properly replaced.

The wonders of browsing.

*Also Note* I analyzed the extension, looking for potential server requests to steal passwords or user information. The plugin looks clean and Approved!

About Phillihp Harmon

I'm Phillihp. My name can be spelled the same way forwards and backwards, so can my posts... if you wish. I'm out here exploring, learning, and sharing what I find. This is more for fun and personal growth, I aim to be as consistent as possible, so check back daily!
This entry was posted in ***, Android, Browsers, Chrome, DIY, Google, Hacking, Internet, Internet Explorer, iPad, iPhone. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *


You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>