Silent background focus timer that blocks distracting sites system-wide. No browser extension needed — works everywhere, every browser.
# Windows: run PowerShell as Administrator
# Mac/Linux: prefix with sudo
python focusguard.py 25 # 25 minute session
python focusguard.py 60 # 1 hour sessionEdits your system hosts file to redirect blocked domains to 127.0.0.1. Automatically cleans up when the timer ends or you press Ctrl+C.
Add or remove domains from sites.txt — one per line.
Pure Python standard library. Nothing to install.