搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

Learn More

Firefox address bar interpreters any string as a domain if you have: dot string before it

  • 3 个回答
  • 4 人有此问题
  • 1 次查看
  • 最后回复者为 cor-el

more options

I've tried addons (omnibar, foobar) that I expected would fix this issue, which is basically in this example:

website.com -> will be interpreted as a domain, which it should do. program.callprocess -> will be interpreted as a domain, which it should not.

But neither did that.

So I'm wondering if it is even possible or if this is something only Firefox devs can do?

EDIT: ironically here it is interpreted as it should.

I've tried addons (omnibar, foobar) that I expected would fix this issue, which is basically in this example: website.com -> will be interpreted as a domain, which it should do. program.callprocess -> will be interpreted as a domain, which it should not. But neither did that. So I'm wondering if it is even possible or if this is something only Firefox devs can do? EDIT: ironically here it is interpreted as it should.

由hurkburk于修改

所有回复 (3)

more options

Hi hurkburk, I like to think of it as a question of one word vs. multiple words. If there are no spaces in the "query" then Firefox checks DNS, whether the "word" has dots or not (internal addresses often do not have dots).

more options

Yes that's what I also noticed, but if we were to look at ex. Chrome it handles it pretty well (I don't really see it being hard fixing this, since you could just have a silent DNS/hostname lookup and if it's not a DNS/hostname interpreter it as a search string).

Although I do not know if it can handle custom domains well (Firefox would 99.9% of the time get it right since it interpreters dot string as domains no matter what, while Chrome from my guess uses the "domain standard list").

more options

You can disable keyword search (keyword.enable = false) and use a (one letter) keyword search for searching via the location bar.
You can add a keyword to an installed search engine via Manage Search Engines (click the search engines icon on the search bar) and you can add a keyword to a bookmark in the Bookmarks Manager (Show All Bookmarks).

That will allow to switch easily between search engines when you search via the location bar and there also is no problem with a one word search.