Hosts File Blocking
This cluster focuses on using the /etc/hosts file (or equivalent on Windows) to block advertisements, trackers, and unwanted websites, with discussions on its effectiveness, maintenance via lists like StevenBlack/hosts, and alternatives like AdBlock or uBlock.
Activity Over Time
Top Contributors
Keywords
Sample Comments
/etc/hosts is for your systems, use AdBlock for the junk ;-)
The comment is gold: I'm confused, why not just use a HOSTS file to accomplish this?
/etc/hosts is your friend.
Write your own hosts file and block all websites you donβt want to visit.
Looks like a good alternative to my ever growing /etc/hosts file that points every ad server I find objectionable to localhost.
The hosts file is not the right tool to do this.
okay, finally bit the bullet and blocked it in hosts file.
Anything we can toss into the HOSTS file to address this?
The hosts file doesn't let you properly block domains. It only lets you resolve them to something else. It's the wrong tool for the job.
Wouldn't it be more practical as a ublock list ? It has auto-updating and is easier to set than editing /etc/hosts file