Non techie here. Mind sharing what the hosts file is and how you use it?
I've been hesitant to use 3rd party extensions/tools that block websites. I just assume if they are free they must sell my data.
Also, controlling something on local machine could be cool. I'd experiment with adding/removing sites on random timeframes, to see if that could help me (one weird trick to help you overcome your social media addiction!)