How do I disable Search from Address Bar in Firefox?

I see this question has been asked (only once?) back in 2015 (and there was no answer).

Remove search from address bar from Firefox

I seem to remember, when using an old version of Firefox (like version 2.x) that you could disable search from the address bar. So when you typed in garbage, or you mis-typed a URL in the address bar, the browser didn't automatically perform a google search on what you typed. Is there no setting for this on FF today?


This Reddit thread may be of use.

First type about:config in the address bar, and then follow these steps:

Set both keyword.enabled and browser.fixup.alternate.enabled to false. This will ensure that anything you type will be treated as a domain name, not potentially as a search request, and that the domain name will be exactly as you typed it.

You may also want to set browser.urlbar.suggest.searches to false to ensure that partially typed URLs don't ever get sent off to a search engine too.