Originally Posted by
AllieKat
Holy bad advice, just so everyone else knows - while it would, likely, work - this hosts file will quite literally break the internet. It'll prevent Google from loading.
"break the internet" being tongue-in-cheek, I assume. The idea of using a hosts file like that is not unreasonable, but needs to be properly curated. A lot of the listed hosts are indeed ad sites or data-collecting sites, but some are rather more critical. To take the most glaring example: the list includes both
www.google.com and
www.google-analytics.com. Including the latter will cut down on Google's collecting data, with generally no ill effects; including the former, not so much.