Hosts File Blocklist Generator

Build a copy-paste hosts file blocklist for common distraction domains on Mac, Linux, or Windows.

Pick the sites you want blocked, add custom domains, then copy the hosts file snippet. Hosts-file blocking works across browsers — harder to bypass than an extension you can toggle off.

comma or space separated

Hosts file output (11 domains)

Requires admin/sudo to edit hosts
# Distraction blocklist generated by LockIn MCP
# https://www.lockinmcp.com/tools/hosts-blocklist
# Paste into /etc/hosts (Mac/Linux) or C:\Windows\System32\drivers\etc\hosts

127.0.0.1 m.youtube.com
127.0.0.1 old.reddit.com
127.0.0.1 reddit.com
127.0.0.1 twitter.com
127.0.0.1 www.reddit.com
127.0.0.1 www.twitter.com
127.0.0.1 www.x.com
127.0.0.1 www.youtube.com
127.0.0.1 x.com
127.0.0.1 youtu.be
127.0.0.1 youtube.com

Mac / Linux: sudo nano /etc/hosts

Windows: edit C:\Windows\System32\drivers\etc\hosts as Administrator

Flush DNS after saving (e.g. dscacheutil -flushcache on Mac, ipconfig /flushdns on Windows).

Skip the manual hosts edits

LockIn MCP manages system-level hosts blocking for you — and your AI can add, remove, or temporarily unblock domains without opening a terminal.