Post
Topic
Board Serious discussion
Merits 1 from 1 user
Re: Listing subdomains of [social media] websites for /etc/hosts blackhole-ing
by
LoyceV
on 13/08/2022, 13:11:10 UTC
⭐ Merited by ETFbitcoin (1)
someone should track all its subdomains in a text file
Someone did that already Smiley Allow me to quote myself:
Someone ~ should maintain a list
Someone already did that: https://github.com/StevenBlack/hosts (scroll down a bit to see many different categories hosts files).

I'd still prefer some folder like /etc/hosts.d where you can put files for any website in individual files. That'll make it much simpler to add new subdomains without breaking everything. Maybe using something like https://unix.stackexchange.com/questions/60549/etc-hosts-file-refer-to-another-configuration-file
I would have suggested exactly what it shows there already:
Code:
cat /etc/hosts.d/*.conf > /etc/hosts