To combat procrastination, I edit my
/etc/hosts file by adding time-wasting websites and pointing them to
localhost. However, the flesh is weak and I often find myself reverting my changes.
I was thinking of the following solution, but I don't know if it is technically possible.
I would ask a trusted friend to come over, create a new account with a strong password that I don't know, change the owner and permissions of the
/etc/hosts file so that only that new user can change that file and that I nor root no longer have access to it.
The use case would be that I ask my friend to come over before the exam period, he changes the file and puts the procrastination blocking measures in place, and that during the time I need to study I have no way of editing the file myself. After the exam period is over, I ask him to 'unlock' the file and I can browse freely again.