Sites blocked in /etc/hosts often doesn't work
I solved my problem. It seems I need to block both the domain website.com and the address www.website.com. I didn't know that was necessary. I edited them in there and now the blocking is consistently working everywhere.