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?