Home › Hosts File Generator

Hosts File Generator — Build Your Own Block List

Paste the domains you want gone and download a ready-to-install hosts file or uBlock filter list.

A hosts file is the quietest blocking tool on any device: a local address map that points chosen domains to nowhere. Paste the domains you want blocked and this generator builds a ready-to-install file — for Windows, macOS or Linux — or a uBlock Origin filter list for the browser extension.

Generated entirely in your browser: the list never leaves your device. Pair it with the per-device blocking guides on this site for the full setup, and read the blocker comparison guide to understand what a hosts file can and can't do.

Frequently asked

Where do I install the generated file?

Windows: C:\Windows\System32\drivers\etc\hosts (open as administrator). macOS/Linux: /etc/hosts. The generated file includes install instructions at the top.

Can a hosts file block everything?

No — it blocks exactly the domains you list, and VPN traffic can bypass it. Treat it as one layer; the blocker comparison guide covers the fuller picture.