Pi-hole 去廣告

安裝pi-hole

參考:官方手冊(cè)

curl -sSL https://install.pi-hole.net | bash 一鍵自動(dòng)安裝出錯(cuò),成功率0% 手冊(cè)中有手動(dòng)安裝

wget -O basic-install.sh https://install.pi-hole.net
sudo bash basic-install.sh

添加hosts后要手動(dòng)更新下 : tools - Update Gravity -

1.yhosts: https://raw.githubusercontent.com/VeleSila/yhosts/master/hosts (國(guó)內(nèi)維護(hù)者屏蔽國(guó)內(nèi)網(wǎng)站廣告)
2.大圣凈化:https://raw.githubusercontent.com/jdlingyu/ad-wars/master/hosts (主要針對(duì)國(guó)內(nèi)視頻網(wǎng)站)
3.1024_hosts:https://raw.githubusercontent.com/Goooler/1024_hosts/master/hosts (1024網(wǎng)站和澳門皇家賭場(chǎng))
4.Adaway: https://raw.githubusercontent.com/AdAway/adaway.github.io/master/hosts.txt (adaway官方)
5.Hblock:https://hblock.molinero.dev/hosts (綜合多種源集合體屏蔽廣告跟蹤和惡意軟件)
6.Mvps:https://winhelp2002.mvps.org/hosts.txt (屏蔽美歐地區(qū)英文網(wǎng)站相關(guān)的廣告)
7.YousList: https://raw.githubusercontent.com/yous/YousList/master/hosts.txt (主要屏蔽韓國(guó)人使用的網(wǎng)站廣告)
8.StevenBlack: https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts (多源集合體偏向屏蔽國(guó)外網(wǎng)站廣告)
9.Google hosts:https://raw.githubusercontent.com/googlehosts/hosts/master/hosts-files/hosts (提高網(wǎng)站訪問速度)

路由端屏蔽規(guī)則

pihole 命令行操作

pihole -h # 顯示 pihole 命令行幫助信息
pihole -b -l # 顯示黑名單列表
pihole -b site1.com site2.com # 把 site1 和 site2 加入黑名單
pihole -b -d site1.com # 把 site1 從黑名單移除
pihole restartdns  # 重啟服務(wù) 而不用重啟整個(gè)服務(wù)器

?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡(jiǎn)書系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容