ultrafocus
Focus is key. Unlock your potential.
A dead simple CLI tool to block distracting websites and boost productivity. Customize your blacklist, focus on tasks, and reclaim your time.
Installation
Download the latest binary from the releases page or use go install:
go install github.com/plutov/ultrafocus@latest
Usage
ultrafocus needs sudo to modify /etc/hosts file. It won't affect your existing configuration, the changes made by ultrafocus are separated by #ultrafocus:start and #ultrafocus:end comments.
sudo ultrafocus
ultrafocus also runs a server on 127.0.0.1:80 where all the requests are redirected to. This page shows a random motivational message.
Default blacklist
You can find the default blacklist in hosts/domains.go.
Run tests
go test -v -race ./...