4 ms·
I have been using this custom host file for a few months and it works like a charm. Just have to update it from time to time (but it can be automated). https:/
by nkg 8y ago
I have been using this custom host file for a few months and it works like a charm. Just have to update it from time to time (but it can be automated).
https://github.com/StevenBlack/hosts https://github.com/StevenBlack/hosts
"This repository consolidates several reputable hosts files, and merges them into a unified hosts file with duplicates removed. A variety of tailored hosts files are provided."
- martin-adams 8y agoThat's very comprehensive. I wonder if you could circumvent the hosts method by rotating through unique subdomains as your ads server. My understanding is that you can't wildcard the hosts file.
- move-on-by 8y agoYes, hosts do not support wildcards. There are some solutions to blocking advertisers that use tricks like you suggest. A PiHole is able to do wildcard blocking. Also, uBlock Origin (which accepts host formatted lists) will automatically block any subdomain of a blocked root. So as long as the parent domain is also blocked, any subdomains would also be included
- thecleaner 8y agoAny ideas on how to get it to work on MacOS ? On High Sierra the browser seems to ignore the /etc/hosts file.
- stblack 8y ago/etc/hosts is indeed used by all versions of MacOS. On MacOS, try this in a terminal window to flush your cache. sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder