Chrome Dev Tools - GeoLocation override not working
Asked Answered
S

2

7

I want to override my GeoLocation using Chrome Dev Tools. I changed my GeoLocation to Moscow as shown in the below screenshot, but still my google search results are generated based on my actual location. I've also tried refreshing the page (Empty Cache and Hard Reload) and it still wont work.

GeoLocation override - Moscow

I followed the steps mentioned in this Doc.

Sarcoid answered 24/4, 2020 at 14:24 Comment(1)
It looks like the functionality is broken in Chromium. I suggest using Firefox security.stackexchange.com/questions/147166/… or even BlueStacks4 and it's built-in location overrideOklahoma
R
0

For me the following simple workaround worked fine:

  • clear sitedata clear site data

  • change Location value to some different city (say, Berlin) another location

  • retry the operation where your location is supposed to be requested

  • then switch back to desired location

Now mocked location is used instead of a real one

Rathskeller answered 8/7, 2024 at 7:34 Comment(0)
L
-1

Please try scrolling to the bottom of google search and clicking on 'Update Location' or 'Use precise location':

Google search screenshot

If that does not work, then you might have issues with permissions in your Chrome settings. https://support.google.com/chrome/answer/142065?co=GENIE.Platform%3DDesktop&hl=en

I recommend this answer for time zone testing: Is there a way to change your timezone in Chrome devtools?

(edit) = Also might be worth to check you are using an accepted value for TimezoneID when adding a new custom location: https://cloud.google.com/dataprep/docs/html/Supported-Time-Zone-Values_66194188

Lock answered 12/5, 2020 at 9:12 Comment(1)
i have the same problem, none of what you suggested work for me. also, i'm using a vpn to change my ip, so it doesn"'t have to do with ip. Are you able to spoof your location with chrome devtool ?Triphibious

© 2022 - 2025 — McMap. All rights reserved.