The modern hosts file editor for people who care about their tools
See the code(pronounced H-edit)
Fast and intuitive hosts file management. The modern hosts file editor for people who care about their tools.
This application is available on macOS and Linux. Windows support is planned for future releases.
Hedit supports standard hosts file entries and two directives for combining local and remote files.
Each entry must contain a valid IPv4 or IPv6 address followed by one hostname. You can also use blank lines, full-line comments, and inline comments.
# Local development
127.0.0.1 app.local
127.0.0.1 api.app.local # Optional inline comment
::1 ipv6.app.local
Hedit validates entries before activation and rejects invalid addresses, invalid hostnames, multiple hostnames on the same line, and duplicate custom hostnames.
Combo files let you build one hosts file from other files managed by Hedit and from remote sources. Add each directive on its own line; Hedit expands them in order when the combo file is activated.
@local(550e8400-e29b-41d4-a716-446655440000)
Right-click the file in the sidebar, select Copy ID, and use that ID inside @local(...).
@remote(https://example.com/hosts.txt)
Remote URLs must use HTTPS and return a text/plain response. Included files should contain standard hosts entries; directives are not expanded recursively.
# Project-specific entries
127.0.0.1 app.local
127.0.0.1 api.app.local
# Include another file managed by Hedit
@local(550e8400-e29b-41d4-a716-446655440000)
# Include a remote blocklist
@remote(https://example.com/hosts.txt)
These people help make it happen. You can become a sponsor to support Hedit. Thanks for your support! 🫶🏻
On some macOS systems, activating a file may fail with a permission error when Hedit tries to write to /etc/hosts. Follow the investigation in issue #30.
You can change the file's permissions to let your user edit it without sudo. I would recommend to do quick search before if you want to go that route, just do it knowing the tradeoffs.
162 commits
Vue
53.8%
Rust
32.5%
TypeScript
12.0%
The modern hosts file editor for people who care about their tools
See the code(pronounced H-edit)
Fast and intuitive hosts file management. The modern hosts file editor for people who care about their tools.
This application is available on macOS and Linux. Windows support is planned for future releases.
Hedit supports standard hosts file entries and two directives for combining local and remote files.
Each entry must contain a valid IPv4 or IPv6 address followed by one hostname. You can also use blank lines, full-line comments, and inline comments.
# Local development
127.0.0.1 app.local
127.0.0.1 api.app.local # Optional inline comment
::1 ipv6.app.local
Hedit validates entries before activation and rejects invalid addresses, invalid hostnames, multiple hostnames on the same line, and duplicate custom hostnames.
Combo files let you build one hosts file from other files managed by Hedit and from remote sources. Add each directive on its own line; Hedit expands them in order when the combo file is activated.
@local(550e8400-e29b-41d4-a716-446655440000)
Right-click the file in the sidebar, select Copy ID, and use that ID inside @local(...).
@remote(https://example.com/hosts.txt)
Remote URLs must use HTTPS and return a text/plain response. Included files should contain standard hosts entries; directives are not expanded recursively.
# Project-specific entries
127.0.0.1 app.local
127.0.0.1 api.app.local
# Include another file managed by Hedit
@local(550e8400-e29b-41d4-a716-446655440000)
# Include a remote blocklist
@remote(https://example.com/hosts.txt)
These people help make it happen. You can become a sponsor to support Hedit. Thanks for your support! 🫶🏻
On some macOS systems, activating a file may fail with a permission error when Hedit tries to write to /etc/hosts. Follow the investigation in issue #30.
You can change the file's permissions to let your user edit it without sudo. I would recommend to do quick search before if you want to go that route, just do it knowing the tradeoffs.
162 commits
Vue
53.8%
Rust
32.5%
TypeScript
12.0%