How to Change Browser’s User Agent to Bypass Websites (Google Chrome, Mozilla, Edge)

Written by

If you’re trying to access a website that blocks certain mobile devices, websites usually detects your browser’s user agent to check the type of device you’re using. But did you know that web browser has actually a settings for it where you can mock your device information into a different device.

How to Change User Agent

To change your browser’s user agent, you need to open Developer Tools. You can find this by clicking 3 dot or the hamburger icon in your browser then More Tools > Developer Tools. Or simply press CTRL + Shift + i.

By default, the Developer Tools will pop up at the bottom of your browser’s current tab. At the upper right corner of it, click the 3 dot icon “Customize and control DevTools”, then go to More Tools > Network Conditions.

From here, there will be a User Agent. By default, it is set automatically. To change your browser’s user agent. Uncheck the Select automatically.

Then fill-in the user agent of the device that you want to pretend to. For example, mocking your device as a Huawei P30 Pro:

Mozilla/5.0 (Linux; Android 9; VOG-L29) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.90 Mobile Safari/537.36

Once you’ve done changing your user agent, refresh the page that you’re trying to access and you should able to bypass the device restriction.

If you access the website before doing this, some website may save your device information and you may not still able to access the site after mocking your device. Try clearing browser’s cache or using incognito mode, then redo the step above.

That’s it!

Article Tags:
Article Categories:
Guide · How To

Leave a Reply