Hostfiler app icon
Mac app

Hostfiler

In progress

Keep several hosts files and switch between them from the menu bar.

Working on a local copy one minute and checking staging the next? Hostfiler keeps a host-file for each situation and writes the one you pick to /etc/hosts, safely and with one Touch ID prompt. No more editing the file in Terminal with sudo.

Coming soon

Hostfiler is in progress: the download opens once the first release is signed and notarized by Apple. Requires macOS 14 Sonoma or later.

Hostfiler's window: a sidebar with the host-files Local development, Staging, Client demo and Focus mode, and the entries of Local development, each with an IP address, host names, a comment and an on/off checkbox

What it does

Screenshots

Hostfiler with the Staging host-file selected while Local development is in use, and the status bar saying: Staging is not in use, click Use to switch to it
Select another host-file and click Use to switch.
Hostfiler with a Focus mode host-file that points distracting websites to 0.0.0.0, one of its entries switched off
Not only for developers: block distracting sites while you work.

Questions

Why does Hostfiler ask for Touch ID or my password?

/etc/hosts belongs to the system, so changing it needs administrator rights. Hostfiler asks macOS for them each time it writes the file, with the standard prompt. It installs no background helper and keeps no permanent rights.

What happens to my current hosts file?

On first launch Hostfiler saves an exact copy of it and imports your own entries into a host-file called Imported. The standard lines macOS needs, such as localhost, are always kept. Restore original puts the saved copy back at any time.

Which Macs does it run on?

Any Mac with macOS 14 Sonoma or later, Apple silicon or Intel.

Does Hostfiler collect any data?

No. It has no account, no analytics and makes no network connections. Your host-files and backups stay on your Mac, in ~/Library/Application Support/Hostfiler.

Why isn't it in the Mac App Store?

App Store apps must run in Apple's sandbox, and the sandbox does not allow changing /etc/hosts. So Hostfiler is a download from this page instead, signed with our Developer ID and notarized by Apple, so macOS opens it without warnings.

When can I download it?

Hostfiler is in progress. We already use it ourselves, and the download goes live here once the first release is signed and notarized. Want to know when? Mail info@kingsofaces.com.