plutov / ultrafocus

CLI tool to block distracting websites and boost productivity.
MIT License
137 stars 8 forks source link

Find a solution without using /etc/hosts #2

Open plutov opened 4 months ago

plutov commented 4 months ago

/etc/hosts work well for now, but they require sudo. Probably there is a way to block list of domains using a firewall.

ats1999 commented 2 months ago

The simple solution is to keep the mind in control. Yoga can really help in that matter.

ccoVeille commented 2 months ago

/etc/hosts work well for now, but they require sudo. Probably there is a way to block list of domains using a firewall.

A DNS over HTTPS might be a solution, but then it requires to update the browser conf.

Another could be solution like dnsmask, but the service start/stop might require a sudo.

plutov commented 2 months ago

@ccoVeille it already requires a sudo to edit /etc/hosts so it's fine.