WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Recommended hosts file blocklist ?  (Read 484 times)

Offline PDP-8

  • Hero Member
  • *****
  • Posts: 875
Recommended hosts file blocklist ?
« on: October 19, 2021, 11:23:55 PM »
Can anyone recommend any good hosts file blocklists like the old days?

Testing out the ancient Opera-12 on TinyCorePure64, and it may fit my needs for some limited applications.

But obviously the ability to install extensions like uBlock Origin, the fsf's Privacy Badger, and the latest JShelter can't be done.

So at least I'd like to put *something* in there to help prevent modern 3rd party junk from stealing my bandwidth a bit at a time. :)

So if you have any preferences for canned hosts file blocklist, I'm all ears!
That's a UNIX book! - cool  -- Garth

Offline patrikg

  • Sr. Member
  • ****
  • Posts: 372
Re: Recommended hosts file blocklist ?
« Reply #1 on: October 20, 2021, 04:11:06 AM »
Have a look at this site:

https://filterlists.com/

Offline gadget42

  • Jr. Member
  • **
  • Posts: 55
Re: Recommended hosts file blocklist ?
« Reply #2 on: October 20, 2021, 12:22:59 PM »
have used Dan Pollock's list for years:
https://someonewhocares.org/hosts/
(Dan's rss feed: https://someonewhocares.org/hosts/rss.xml)

also you can have a look at another list provider that doesn't update their list much:
https://winhelp2002.mvps.org/hosts.htm
(if nothing else, the webpage has plenty of insightful information)

filter lists is confusing until you get over/past the learning curve/hump:
https://filterlists.com/

Offline PDP-8

  • Hero Member
  • *****
  • Posts: 875
Re: Recommended hosts file blocklist ?
« Reply #3 on: October 20, 2021, 06:32:48 PM »
Thanks guys!  Looks like some of those dos-based filterlists needed some cleanup with the dos2unix command to zap those ctrl-m's.

Problem is, my limited TC-fu is eluding me.  I prepend the original hosts file from TC to the new one, but making it actually work / stick / reread has me puzzled.

And simply adding /etc/hosts to my backup list doesn't work either - upon reboot it is zapped and back to the original.  Good security I suppose.

Hmm..  wonder how you guys get TC to reread and activate your new hosts file?
That's a UNIX book! - cool  -- Garth

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 9659
Re: Recommended hosts file blocklist ?
« Reply #4 on: October 20, 2021, 06:48:16 PM »
Hi PDP-8
I have this in my  /opt/bootlocal.sh  file:
Code: [Select]
cat /home/tc/HostsBlocked.txt >> /etc/hosts

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 9659
Re: Recommended hosts file blocklist ?
« Reply #5 on: October 20, 2021, 07:39:47 PM »
Hi PDP-8
... Hmm..  wonder how you guys get TC to reread and activate your new hosts file?
I think the file gets consulted for every request. The  /etc/hosts  file resides in RAM so reading it is fast. I'm pretty sure
I've commented out entries and it took effect as soon as I refreshed the web page.

Offline PDP-8

  • Hero Member
  • *****
  • Posts: 875
Re: Recommended hosts file blocklist ?
« Reply #6 on: October 20, 2021, 10:05:22 PM »
YES!  Right on Rich.  Using bootlocal.sh was the key!

I tested by altering the modified hosts file, and yep - it gets consulted and picks up the change.

Something like this is SO PERFECT for TC with nary any performance penalty due to being in ram.  Outstanding.
That's a UNIX book! - cool  -- Garth

Offline CNK

  • Newbie
  • *
  • Posts: 45
Re: Recommended hosts file blocklist ?
« Reply #7 on: October 21, 2021, 11:31:00 PM »
I don't have much faith in most hosts file blocklists myself, because they're manually generated and too easily get full of outdated entries while at the same time inevitably missing the latest changes.

The exception might be this, because there's an actual reasoning and method behind it:
https://spreadprivacy.com/duckduckgo-tracker-radar/

The Git repo is around 2GB and doesn't contain a hosts file itself.

I wrote a simple script that just uses grep to pull out the host names who's JSON file contains a relevent category name, and it generates a hosts file. I haven't had time to test out using the hosts file yet though - I'm not sure how much stuff it might break when trying to browse Javascripty sites in Firefox.

I use NoScript in Firefox and use Dillo whenever possible anyway, though both approaches are still vulnerable to tracking pixels.

If anyone's interested I can try to remember to remember to post instructions for making a DDG Tracker Radar hosts file here once I get back to it one day.

Offline gadget42

  • Jr. Member
  • **
  • Posts: 55
Re: Recommended hosts file blocklist ?
« Reply #8 on: October 22, 2021, 08:34:12 AM »
when you get a chance that would be great!