搜尋 Mozilla 技術支援網站

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

Learn More

How can I exclude urls ending with .lan from searching

  • 2 回覆
  • 1 有這個問題
  • 367 次檢視
  • 最近回覆由 joalbauer

more options

In my home network there are several servers whose URLs end with ".lan". For example http://nas.lan or http://router.lan. When I want to connect to these machines with Firefox, I usually type router.lan in the address bar. But then Firefox starts searching for router.lan on google. Afterwards I am asked if I had wanted to access http://router.lan instead and when I click "Yes" Firefox takes me where I actually wanted to go. However, this can get quite annoying over time, and I wonder if it is possible to tell Firefox to go directly to the URL I enter whenever it is a string ending with ".lan" and avoid to search for it? Don't get me wrong, I do not want to disable the search bar completely as I am very used to type in searches into the address bar directly.

In my home network there are several servers whose URLs end with ".lan". For example http://nas.lan or http://router.lan. When I want to connect to these machines with Firefox, I usually type router.lan in the address bar. But then Firefox starts searching for router.lan on google. Afterwards I am asked if I had wanted to access http://router.lan instead and when I click "Yes" Firefox takes me where I actually wanted to go. However, this can get quite annoying over time, and I wonder if it is possible to tell Firefox to go directly to the URL I enter whenever it is a string ending with ".lan" and avoid to search for it? Don't get me wrong, I do not want to disable the search bar completely as I am very used to type in searches into the address bar directly.

被選擇的解決方法

Hi, try this:

  • type about:config into the address bar and press enter.
  • Acknowledge the warning.
  • In the search box at the top enter `browser.fixup.domainsuffixwhitelist.lan` (without the quotes).
  • On the row that appears, make sure that Boolean is selected, then click the plus sign. This should create it with value "true".

Now you should be able to have the `lan` domain work as you want.

從原來的回覆中察看解決方案 👍 1

所有回覆 (2)

more options

選擇的解決方法

Hi, try this:

  • type about:config into the address bar and press enter.
  • Acknowledge the warning.
  • In the search box at the top enter `browser.fixup.domainsuffixwhitelist.lan` (without the quotes).
  • On the row that appears, make sure that Boolean is selected, then click the plus sign. This should create it with value "true".

Now you should be able to have the `lan` domain work as you want.

more options

You're the best. Thank you very much.