はじめに
ネットサーフィンしていると色んな広告が出てきて、とても邪魔ですよね。またポルノまがいの物も多いので、子どもにネットをさせている方も心配なはず!!
また害しかない広告の為に無駄な通信も発生しているので、良いことが何もありません。
こういう広告をブロックする色々なアプローチがありますが、今回はDNSでコントロールするソフトを紹介したいと思います。
自宅にこのサーバを作って、ご自身の端末のDNS設定をこのラズパイに向けるだけで、勝手にフィルタリングしてくれるものとなります。
インストール方法
1.下記のコマンドを実行するとインストールウィザードが動作します。
curl -sSL https://install.pi-hole.net | bash
後は画面に従って設定していくだけ。超簡単です!!
設定方法
1.下記のページで管理画面を開きます。
http://サーバのIPアドレス/
2.下記のサイトなどを参照しながら、ブロックリストを追加する。
(Group Management > Adlists)
![](https://s.wordpress.com/mshots/v1/https%3A%2F%2Fadaway.org%2Fhosts.txt?w=160&h=90)
https://adaway.org/hosts.txt
![](https://s.wordpress.com/mshots/v1/https%3A%2F%2Fs3.amazonaws.com%2Flists.disconnect.me%2Fsimple_tracking.txt?w=160&h=90)
https://s3.amazonaws.com/lists.disconnect.me/simple_tracking.txt
![](https://s.wordpress.com/mshots/v1/https%3A%2F%2Fs3.amazonaws.com%2Flists.disconnect.me%2Fsimple_ad.txt?w=160&h=90)
https://s3.amazonaws.com/lists.disconnect.me/simple_ad.txt
![](https://s.wordpress.com/mshots/v1/https%3A%2F%2Fv.firebog.net%2Fhosts%2FAdguardDNS.txt?w=160&h=90)
https://v.firebog.net/hosts/AdguardDNS.txt
![](https://s.wordpress.com/mshots/v1/https%3A%2F%2Flogroid.github.io%2Fadaway-hosts%2Fhosts_no_white.txt?w=160&h=90)
Page not found · GitHub Pages
![](https://s.wordpress.com/mshots/v1/https%3A%2F%2Fraw.githubusercontent.com%2FStevenBlack%2Fhosts%2Fmaster%2Fhosts?w=160&h=90)
https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts
![](https://s.wordpress.com/mshots/v1/https%3A%2F%2Fraw.githubusercontent.com%2Fmultiverse2011%2Fadawaylist-jp%2Fmaster%2Fhosts?w=160&h=90)
https://raw.githubusercontent.com/multiverse2011/adawaylist-jp/master/hosts
![](https://s.wordpress.com/mshots/v1/https%3A%2F%2Fsites.google.com%2Fsite%2Fhosts2ch%2Fja?w=160&h=90)
Google Sites: Sign-inAccess Google Sites with a personal Google account or Google Workspace account (for business use).
![](https://s.wordpress.com/mshots/v1/https%3A%2F%2Fhosts-file.net%2Fad_servers.txt?w=160&h=90)
404 Not Found
![](https://s.wordpress.com/mshots/v1/https%3A%2F%2Fwarui.intaa.net%2Fadhosts%2Fhosts.dos?w=160&h=90)
https://warui.intaa.net/adhosts/hosts.dos
![](https://s.wordpress.com/mshots/v1/https%3A%2F%2Fwarui.intaa.net%2Ffiles%2Fwarui_hosts%2Fwarui_malware_hosts_unbound.txt?w=160&h=90)
https://warui.intaa.net/files/warui_hosts/warui_malware_hosts_unbound.txt
![](https://s.wordpress.com/mshots/v1/https%3A%2F%2Fwarui.intaa.net%2Ffiles%2Fwarui_hosts%2Fwarui_phish_hosts_unbound.txt?w=160&h=90)
https://warui.intaa.net/files/warui_hosts/warui_phish_hosts_unbound.txt
![](https://s.wordpress.com/mshots/v1/https%3A%2F%2Fmirror1.malwaredomains.com%2Ffiles%2Fjustdomains?w=160&h=90)
404 Not Found
![](https://s.wordpress.com/mshots/v1/http%3A%2F%2Fwinhelp2002.mvps.org%2Fhosts.txt?w=160&h=90)
http://winhelp2002.mvps.org/hosts.txt
![](https://s.wordpress.com/mshots/v1/https%3A%2F%2Fphishing.army%2Fdownload%2Fphishing_army_blocklist.txt?w=160&h=90)
https://phishing.army/download/phishing_army_blocklist.txt
![](https://s.wordpress.com/mshots/v1/https%3A%2F%2Fsomeonewhocares.org%2Fhosts%2Fzero%2F?w=160&h=90)
Using a Hosts File To Make The Internet Not Suck (as much) (0.0.0.0 version)Instructions on how to use a hosts file to avoid viewing ads and to make your internet experience more pleasant.
![](https://s.wordpress.com/mshots/v1/https%3A%2F%2Fwww.squidblacklist.org%2Fdownloads%2Fdg-ads.acl?w=160&h=90)
https://www.squidblacklist.org/downloads/dg-ads.acl
![](https://s.wordpress.com/mshots/v1/http%3A%2F%2Fsysctl.org%2Fcameleon%2Fhosts?w=160&h=90)
http://sysctl.org/cameleon/hosts
![](https://s.wordpress.com/mshots/v1/http%3A%2F%2Fpgl.yoyo.org%2Fas%2Fserverlist.php%3Fhostformat%3Dhosts%26amp%3Bamp%3Bshowintro%3D0%26amp%3Bamp%3Bmimetype%3Dplaintext?w=160&h=90)
http://pgl.yoyo.org/as/serverlist.php?hostformat=hosts&showintro=0&mimetype=plaintext
まとめ
いかがだったでしょうか?ものすごく簡単ですよね。
家に余っているラズパイがあったら、是非試してみてください!!
コメント