>>109481601
If you want to deny 4chan, add this to /etc/hosts (you can also use 127.0.0.1 instead of 0.0.0.0)
0.0.0.0 4chan.org
0.0.0.0 www.4chan.org
Then
sudo chattr +i /etc/hosts
alias chattr='echo "fuck off"'
You can add a shutdown command or something else that makes it so annoying that even when you try to edit with chattr, you accidentaly ruin everything and start actually thinking that "well, good then, I will not change it back".
I have extreme problem to shutdown my pc and go to bed, so I use this and it has always worked:
# I have this via 'sudo crontab -e'
55 22 * * * /usr/bin/loginctl poweroff
sudo chattr +i /var/spool/cron/*
# leave empty:
sudo touch /etc/cron.allow
sudo chattr +i /etc/cron.allow
# add your user and root here:
sudo touch /etc/cron.deny
sudo chattr +i /etc/cron.deny
sudo chattr +i /etc/crontab
alias crontab='echo "fuck you"'
alias chattr='crontab'