Hostsblock

提供: ArchWiki
2015年12月26日 (土) 23:14時点におけるKusanaginoturugi (トーク | 投稿記録)による版 (カテゴリー名を日本語に変更。Relatedにdnsmasqを追加。)
ナビゲーションに移動 検索に移動
この記事は書きかけです。
ノート: Still too short, if there's not much information to be added, consider merging the content to a more generic article. (Discuss)

関連記事

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.

設定

タイマーユニットを開始します。

$ sudo systemctl start hostsblock.timer
$ sudo systemctl list-timers 

必要に応じて有効にしてください。

systemctl enable hostsblock.timer

ブロックするURLの追加

example.com をブロックする

$ sudo hostsblock-urlcheck "http://www.example.org"

See also