Skip to content

Instantly share code, notes, and snippets.

@metametapod
metametapod / README.md
Last active April 19, 2024 05:44
Script to automatically update hosts file from a filter list

Minimal script to quickly update hosts file from a filter list.

Note that this does not replace the entirety of the hosts file, so previous customizations will remain intact.

Installation

Download the update_hosts script below or run:

$ curl --proto "=https" --tlsv1.2 https://gist.githubusercontent.com/metametapod/4c4a7a9c888343fc6e722f8ed77aa763/raw/update_hosts -o update_hosts