Setup a PiHole and add them to the blocklist. Then make the PiHole password stupid long and write it down. Then take the paper, put it in a safe, and put it in the highest shelf in the back of your closet. Recurse safes and passwords as much as needed.
Linux
From Wikipedia, the free encyclopedia
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.
Rules
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
- No misinformation
- No NSFW content
- No hate speech, bigotry, etc
Related Communities
Community icon by Alpár-Etele Méder, licensed under CC BY 3.0
You’re gonna have better luck changing your habits than you will making a block that you yourself can’t overcome.
Creating hurdles can help lowering the temptation. I totally get OP.
Therapy of some sorts is probably going to be more effective than making self-blocks, especially if you're technically competent. I wish you luck with stopping whatever addiction it is.
Therapy is probably a better option.
If redirecting with /etc/hosts isn't enough, you could set up a cron job (I guess as root?) to re-copy a hosts file back to /etc/hosts every half hour or something. That way even if you do manually change /etc/hosts for an quick peak of an illicit website, it'll go back to being blocked in a short amount of time. This'll add a bit of the "pain in the ass" factor.
Only thing I can think of is to remove your default account from the sudoers file and have an account with a frustratingly long password written on physical paper hold the keys to the kingdom. That will make a whole lot of other things a hurdle too though.
Yeah, whatever roadblocks are set up can easily be dismantled using the same privs.
Only way to achieve this goal is to either hand the keys to someone else or to lock yourself out.
Just set the site to be hidden? If it's not in the list you didn't even know its an option and thus everything else is moot.
Pretty sure every search engine at thing point has a option to just "not show results from this website" or equivalent.
Out of sight out of mind.
i'm curious what websites are you doing. what's the threat model??