blob: 9c7d8c9026d02e4482b016142540275c6bc4834a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
# systemd timer and service to fetch adware and malware blocking hosts file
Fetch a hosts file from https://github.com/StevenBlack/hosts/ and overwrite `/etc/hosts` via a systemd timer and service.
Install with the `PKGBUILD` or by copying `fetch-hosts.timer` and `fetch-hosts.server` to `/etc/systemd/system`.
Enable the timer to fetch new hosts files:
```
$ systemctl enable fetch-hosts.timer
$ systemctl enable fetch-hosts.service
```
Enable only one of the following:
```
$ systemctl enable NetworkManager-wait-online.service
$ systemctl enable systemd-networkd-wait-online.service
```
|