Bloggings

Home

Protecting your computer with a hosts file

19-11-2023

Sebsauvage has put together a great hosts file: dns-blocklist

DNS filtering is a simple way of blocking the majority of ads, trackers and malicious sites with minimum effort. Set-up is fast and easily reversible.

On Linux

sudo curl "https://sebsauvage.net/wiki/doku.php?do=export_code&id=dns-blocklist&codeblock=0" -o /etc/cron.weekly/hosts-update sudo chmod +x /etc/cron.weekly/hosts-update

Run the first update:

sudo /etc/cron.weekly/hosts-update

On Windows

Windows networking is a steaming pile of manure, but you can still install this file with caveats.


A minimalist blog by Philip Wittamore