On saving time and money with /etc/hosts

Recently whenever I’m bored, tired and with just 20 minutes to spare (bored enough so I can’t go to sleep early but too tired to do anything productive, and turning on the console for just 20 minutes never works) I got onto the habit of browsing clothes, cosmetics, etc. Maybe I need to fill in some void, or maybe I’ve been succumbing again to the pressure of looking presentable when going to the office (after several months of remote work spent in some jeans and nondescript t-shirts). Either way, there’s clearly a pattern here.

So I gathered the websites I’ve been using too frequently for no good reason, and added them to /etc/hosts. After a while, I decided to impose that ban on some other sites that seem to bring no value to me. Currently the selection is as follows:

# Block super stupid sites I don't want to waste my time on www.reserved.com reserved.com www.housebrand.com housebrand.com www.massimodutti.com massimodutti.com www.cropp.com cropp.com www.wolczanka.pl wolczanka.pl twitter.com www.twitter.com instagram.com www.instagram.com

Remember to restart the browser (and flush the dns beforehand, preferably) after each change. On Ubuntu 18.04, it’s possible to flush dns with sudo systemd-resolve --flush-caches.

Now what will I do with all that extra time? Perhaps I should order more books :)

Published 9 Dec 2018

Personal site; contains my incoherent ramblings, with trace amounts of code & dry jokes.
MK Mozgawa on Twitter