mrjayviper
mrjayviper

Reputation: 2388

How to test javascript geolocation using VPN?

so I want to test if users get a different landing page when coming in from overseas.

like Indian site visitors gets an Indian focused website/services. While domestic visitors get local website/services meant for them.

So I tried using VPN and the browser still knows my real location. Is there a way to fool it so I can test?

Thanks

Upvotes: 0

Views: 314

Answers (1)

Sudeep Reddy
Sudeep Reddy

Reputation: 651

The easiest thing you can try is to set a Fake Geolocation.

Use the VPN to connect to the country of your choice and use the following chrome extension to set the Geo-location. Turn it on and move the latitude and longitude that you set the VPN to and give it a shot.

enter image description here

Upvotes: 1

Related Questions