Sample Header Ad - 728x90

How can I block access to certain websites on Ubuntu?

3 votes
6 answers
10663 views
I would like to block certain websites to improve productivity and avoid distraction. I have found BlockSite (Brave browser extension) to be a very good tool but it has one fatal flaw in that it can be disabled ***very*** easily via the taskbar at the top. I would like a more sturdy solution. I initially used the method outlined here but I found that this method did not emulate the functionality of BlockSite, the latter of which would block every page on Facebook or Twitter (for example), this method of editing the /etc/hosts file only ended up blocking twitter.com and not all pages associated with Twitter (I could still access, for example, Joe Biden's or Donald Trump's Twitter pages) What is the best way to completely block certain websites on ubuntu in a way that makes it difficult to unblock them?
Asked by user440418 (31 rep)
Nov 4, 2020, 12:12 PM
Last activity: Jan 25, 2025, 09:52 PM