Skip to content

Instantly share code, notes, and snippets.

@kolpanic
kolpanic / update_hosts
Last active March 11, 2025 23:12
Block unwanted parasites by redirecting them to `0.0.0.0`
#!/bin/bash
# Downloads Steven Black's "Unified hosts + fakenews" hosts file
# and replaces the existing system hosts file
# https://github.com/StevenBlack/hosts
#
# If you want to make any manual persistent changes to the system hosts
# file, run this script first, then make sure that the change is backed up to
# /etc/hosts.orig