LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (https://www.linuxquestions.org/questions/linux-security-4/)
-   -   /etc/hosts block lists (https://www.linuxquestions.org/questions/linux-security-4/etc-hosts-block-lists-4175656577/)

anon033 06-28-2019 11:07 PM

/etc/hosts block lists
 
I am working on a set of scripts to help me keep my system secure and clean, one of these scripts gets a list of known ad-trackers and malicious sites and blocks them using /etc/hosts. The issue here is that, I only want a list of ad-trackers and mal-sites; but every list I have come across includes sites that may not be age propriate for everyone (I assume this is to cater to maybe families install for the family computer?). The current list (and only one I really know) of is here: https://raw.githubusercontent.com/Lu...etc/master/ips. I understand one could say "well just remove the ones you want", but here is the issue. This is done at A) every install and B) I am using a cron-job to update /etc/hosts once a week. Does anyone know of one of these that solely blocks only trackers and such? I don't use things like Instagram or Facebook or whatever the new social media thing is so I don't mind those being lumped in, but I want to keep it solely to trackers and such.

elcore 06-28-2019 11:48 PM

hpHosts now shares separate lists (they used to share a single huge list before).
IMO it's a bit more work to merge, but less room for error. It's better than it used to be.

ondoho 06-29-2019 02:27 AM

Here's a huge list of hosts files provided around the internet. Well commented. Take your pick.
You might also want to take a closer look at the repo this was taken from; it implements merging lists and whitelisting and blacklisting.
Warning: don't use the install.sh! It's crap.

frankbell 06-29-2019 07:33 PM

I've been using this for my hosts file for years: http://winhelp2002.mvps.org/hosts.htm

It's updated regularly.

anon033 06-29-2019 07:56 PM

Thank you all so much for the lists! Now to write a script to grab them all, merge them and move them to /etc/hosts!

ondoho 06-30-2019 02:48 AM

Quote:

Originally Posted by FOSSilized_Daemon (Post 6010432)
Now to write a script to grab them all, merge them and move them to /etc/hosts!

Quote:

Originally Posted by ondoho (Post 6010202)
You might also want to take a closer look at the repo this was taken from; it implements merging lists and whitelisting and blacklisting.

- ;)


All times are GMT -5. The time now is 10:37 PM.