summaryrefslogtreecommitdiffstatshomepage
path: root/content/2/index.md
blob: 5b4483b2bb2a5da934e46e01b35faf595a320cf6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
+++
date = 2021-06-12T19:47:12+02:00
title = "Did you mean to go to..."

[taxonomies]
tags = ["TIL"]
+++

In recent versions of Firefox, single words are looked up via DNS when you enter
them in the URL bar. If the word resolves, the browser "helpfully" indicates
that there's a page at `http://<word>` to visit.

Weird feature, though when taken at face value I can see its usefulness with a
combined search and URL bar. Ideally you'd have completely different semantics
for searching and (direct) browsing, but I don't think something like this is
forthcoming. If anything I'd expect direct browsing to be ever more discouraged.
Nowadays search engines, not browsers, are the gateway to the internet.

In any case, turns out this feature also has [interesting
side-effects](https://bugzilla.mozilla.org/1642623) with (browser-based) DoH
turned on. If you ever need to turn it off, Firefox 78 added the following
about:config switch:

```
browser.urlbar.dnsResolveSingleWordsAfterSearch
```

Not that I think this is a great solution. DoH should be done on a system-wide
level (with local queries sent to your router or resolved through mDNS) and
there should be a way of trusting your router's DNS to not forward local queries
to your ISP.