I have a problem with procrastinating on websites such as youtube. The usual cures, like a browser extension or
are way too gentle - I just end up disabling them.
An ideal solution would be impossible to disable, but I'll settle for
super annoying to disable. In the very least it should require a restart, which I think is doable.
Since such a solution would be not unlike malware, and since root can undo anything root does, I'm looking for a kernel level solution. I'm willing to jump into light kernel development for this. What I need from you is:
- pointers on whether it's viable
- implementation ideas
- where to begin learning
Perhaps an approach would be to make a (regular userland) process
unkillable, and then this process could do the blocking (e.g. by watching over hosts) and prevent unblocking (e.g. by preventing kernel switching). If there's a way to approximate immutable storage (leveraging the unkillable process), then it could overpower a reboot.