搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

Learn More

How do I set my location with latitude and longitude?

  • 2 回覆
  • 0 有這個問題
  • 75 次檢視
  • 最近回覆由 Mich

more options

I want to allow websites access to my exact location. Where in about:config preferences do I set this up? I have read many confusing threads about this all over the web. And I may have messed up a few of those preferences. So please tell me about related preferences and what their settings should be too.

I also want to block all other location info such as from my IP, Google, wifi, cell towers, etc.. So that the websites only get the exact latitude and longitude. It is easy for me to get my exact latitude and longitude by searching for my address on Google Maps. The latitude and longitude is in the resulting URL.

I am on a desktop PC using Windows 10 Pro.

I want to allow websites access to my exact location. Where in about:config preferences do I set this up? I have read many confusing threads about this all over the web. And I may have messed up a few of those preferences. So please tell me about related preferences and what their settings should be too. I also want to block all other location info such as from my IP, Google, wifi, cell towers, etc.. So that the websites only get the exact latitude and longitude. It is easy for me to get my exact latitude and longitude by searching for my address on Google Maps. The latitude and longitude is in the resulting URL. I am on a desktop PC using Windows 10 Pro.

由 firelight 於 修改

所有回覆 (2)

more options

To allow websites access to your exact location in Firefox, you'll need to follow these steps:

1)Open Firefox and type "about:config" in the address bar, then press Enter. 2)In the search bar, type "geo.enabled" and press Enter. 3)Double-click the "geo.enabled" preference to set its value to "true." This will enable the geolocation feature in Firefox. 4)In the search bar, type "geo.provider.ms-windows-location" and press Enter. 5)Double-click the "geo.provider.ms-windows-location" preference to set its value to "true." This will enable the Windows location provider, which will allow Firefox to use your device's built-in location services to determine your location. 6)In the search bar, type "geo.wifi.scan" and press Enter. 7)Double-click the "geo.wifi.scan" preference to set its value to "true." This will allow Firefox to use WiFi data to determine your location. 8)In the search bar, type "geo.wifi.uri" and press Enter. 9)Double-click the "geo.wifi.uri" preference and enter the URL for a location service that you want to use. For example, you could use the Google Maps URL: "https://www.google.com/loc/json". 10)In the search bar, type "geo.cell.scan" and press Enter. 11)Double-click the "geo.cell.scan" preference to set its value to "true." This will allow Firefox to use cell tower data to determine your location. 12)In the search bar, type "geo.cell.uri" and press Enter. 13)Double-click the "geo.cell.uri" preference and enter the URL for a location service that you want to use. For example, you could use the Google Maps URL: "https://www.google.com/loc/json".

Once you've set these preferences, websites should be able to access your exact location based on the data provided by the location service you specified. To block other location information, such as your IP address or location data from WiFi or cell towers, you can use a privacy extension or plugin.

more options

Also to set your location with latitude and longitude in Firefox, you'll need to use a location spoofing extension or plugin. There are a few options available, such as:

1)Geolocator: This extension allows you to set your location by entering the latitude and longitude coordinates. You can also use it to search for a location by name or address. 2)Location Guard: This extension allows you to set a fixed location or to use random locations within a specified area. You can set the location manually by entering the latitude and longitude coordinates. 3)Firefox Location Spoofer: This extension allows you to set your location by entering the latitude and longitude coordinates or by searching for a location by name or address.

To use any of these extensions, you'll need to install them from the Firefox Add-ons store. Once installed, you can use the extension's settings or options to set your location.

I hope the above suggestions would help :)