Hostsblock
hostsblockAUR is a bash script for Linux designed to take advantage of the HOSTS file available in all operating systems to provide system-wide blocking of internet advertisements, malicious domains, trackers, and other undesirable content. To do so, it downloads a configurable set of blocklists and processes and their entries into a singular HOSTS file.
- Upstream URL: http://gaenserich.github.io/hostsblock/
- Project URL: https://github.com/gaenserich/hostsblock
設定
タイマーユニットを開始します。
$ sudo systemctl start hostsblock.timer $ sudo systemctl list-timers
必要に応じて有効にしてください。
systemctl enable hostsblock.timer
ブロックするURLの追加
example.com をブロックする
$ sudo hostsblock-urlcheck "http://www.example.org"