0

I would like my webpages to think that I am almost 500 KMs away from my exact location. I am okay with my IP address being what it was and would also like to not change anything but my latitude and longitude. I am using an Intel laptop(hp bs-145tu) with Ubuntu 20.04 LTS. How do I do this?

##EDIT 1: As asked by @Carl H, What I want to do is, my location currently is lat a, long b. and i would like to change it to lat x, long y. i am okay with other things like IP address remaining same. I am trying to access some websites which work only when I am in the one of the city that this website delivers and I would like to set a location to see the food joints near to me, that that service delivers to.

6
  • Where /how do you see the latitude/longitude ? – Soren A Dec 16 '20 at 7:21
  • Please edit your question and add detail of what exactly you're trying to do. Do you mean you want override the output of the GPS on the laptop? – Carl H Dec 16 '20 at 7:48
  • This is something that you could use gpsfake to accomplish. It's a testing tool and will allow you to set your own location, which is then read from other applications that can use the geolocation of the device. – user1091774 Dec 16 '20 at 8:25
  • @CarlH, I have edited my question – Naveen Kumar Dec 16 '20 at 10:36
  • Have you considered a VPN that lets you set the city? – David Dec 16 '20 at 11:35
1

In Chrome, you can use the following instructions to spoof your location:

  • In a browser window, hit Ctrl+Shift+I
  • This will open the Chrome Developer Tools window.
  • Open menu (three vertical dots) - More tools
  • Select Sensors and change the Geolocation dropdown to Custom location…
  • Enter any latitude and longitude you want.

chrome dev tools - sensors

Alternatively, you can choose one of the preset options in the Geolocation menu, including Berlin, Mumbai, or San Francisco.

Note that for the location override to work in Chrome, you have to keep the developer tools open and stay in the same browser window. If you open a new window, it will revert back to your original location.

There's also a way to do it in Firefox : see this site : https://www.comparitech.com/blog/vpn-privacy/change-location-chrome-firefox-spoof/

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.