commit 2a9037080066d6735d0dcc5ea3b3f28ef115af67 parent 02abdcdaec43d87f17e679ca4d7ec69d307ebd12 Author: Thuban <thuban@yeuxdelibad.net> Date: Tue, 26 Mar 2019 17:28:49 +0100 update zerohosts doc Diffstat:
M | surf.suckless.org/files/adblock-hosts/index.md | | | 7 | ++----- |
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/surf.suckless.org/files/adblock-hosts/index.md b/surf.suckless.org/files/adblock-hosts/index.md @@ -48,12 +48,9 @@ They are written in `/etc/hosts` file to disable DNS resolution. Get the script from here : [zerohosts](https://dev.yeuxdelibad.net/OpenBSD-stuff/zerohosts). -Edit the script to add you own entries if necessary : +Include your own `/etc/hosts` rules by including a file as an argument - MYHOSTS=" - 127.0.0.1 localhost - ::1 localhost - " + zerohosts /etc/myhosts.txt Run the script each time you want to update the lists using a cronjob, or `/etc/rc.local` :