diff --git a/.github/workflows/pure_domain.yml b/.github/workflows/pure_domain.yml new file mode 100644 index 0000000..8801b65 --- /dev/null +++ b/.github/workflows/pure_domain.yml @@ -0,0 +1,37 @@ +name: PureDomain + +on: + push: + paths: + - "hosts.txt" + - "AutoBuild/pure_domain.py" + +jobs: + # This workflow contains a single job called "build" + build: + # The type of runner that the job will run on + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: "3.x" + + - name: Run AutoBuild + run: | + cd AutoBuild + python pure_domain.py + + - name: Commit files + run: | + git config --local user.email "action@github.com" + git config --local user.name "GitHub Action" + git add domains.txt + git commit -m "🤖 自動更新 domains.txt" + - name: Push changes + uses: ad-m/github-push-action@master + with: + github_token: ${{ secrets.FUTAFILTERAUTOBUILD }} diff --git a/AutoBuild/pure_domain.py b/AutoBuild/pure_domain.py new file mode 100644 index 0000000..9d2765b --- /dev/null +++ b/AutoBuild/pure_domain.py @@ -0,0 +1,5 @@ +with open('../hosts.txt', 'r') as files: + data = files.read().splitlines() + output = '\n'.join(e for e in list(filter(lambda x: not x.startswith('/') and not x.startswith('! regex'), data))) + with open('../domains.txt', 'w') as newoutput: + newoutput.write(output) diff --git a/domains.txt b/domains.txt new file mode 100644 index 0000000..8d38b34 --- /dev/null +++ b/domains.txt @@ -0,0 +1,200 @@ +! FutaHosts +! LowTechFilter Host +! URL: +! 2022.08.30.6 +! -------------------------------------------------- +! 白清單 +@@||ip2location.com^ +@@||fonts.gstatic.com^ + +! hackmd 登入必要 +@@||quantserve.com^ + +! 短網址 +@@||s.yam.com^ +@@||buff.ly^ +@@||0rz.tw^ + +! 部落格 +@@||blog.udn.com^ + +! Amazon 數位商品購買驗證 +@@||fls-na.amazon.com + +! Apple 網頁元件 +@@||securemetrics.apple.com^ + +! Line Pay 公告 +@@||torimochi.line-apps.com^ + +! 台灣樂透 +@@||www.taiwanlottery.com.tw^ + +! Yahoo! 新聞影片 +@@||edgecast-vod.yahoo.net + +! -------------------------------------------------- +! 黑名單 +||5hz.org^ + +! 針對台灣的簡訊詐騙 +||awetd.club^ +||sexsa.xyz^ +||waetd.xyz^ +||super-1.vip^ + +! 針對香港的簡訊詐騙 +||hongkongpost.cf^ + +! 追蹤 +||t.holmesmind.com^ + +! 新聞 +||ad.ettoday.net^ +||ad*.nownews.com^ + +! Yahoo! 新聞廣告 +||fc.yahoo.com^ + +! SEO 濫用 +||pizzaseo.com^ + +! 漫畫人廣告 +||videoapi.manhuaren.com^ + +! 詐騙 +||wildernbus1.live^ +||ladiestofuck.com^ +||taiwan-bestdeals.com^ +||fghjkd.com^ +||track-post-tw.com^ +||track-post-gov-tw.info^ +||brainstudy.info^ +||m2j1.ukwwx.com^ + +! 釣魚 +||track-post-gov-tw.info^ +||goodluckdog.space^ + +! M$ Appcenter log +||in.appcenter.ms^ + +! $ony 耳機 App +||ndmdhs.com^ + +! 垃圾 Line 詐騙 +||baixingnew.com^ +||free-point-receive.weebly.com^ +||freedlinestore.com^ +||healthy001.top^ +||kfc-vip.vip^ +||linemestickershop.weebly.com^ +||owo-owo.vip^ +||sjpop1z.com^ +||xtwnjf.com^ +||xvlpazn.cn^ +||healthy007.top^ +||vip-l53.work^ +||cjfeicui.net^ + +! Weebly 詐騙 +||netfllx.weebly.com^ + +! 臉輸詐騙 +||dented-sun-colt.glitch.me^ + +! 混淆垃圾農場網頁 +||7box.vip^ +||renaultpassonxperience.co^ +||softwarebrother.com^ +||yuutoday.com^ + +! 抽獎廣告 +||weeklywinningluckydayextra.cyou^ +||winning-coupon-theday-congrats.cyou^ + +! 影音媒體廣告 +||onead.onevision.com.tw^ +||ad-specs.guoshipartners.com^ + +! 色情廣告 +||xdfaus.cn^ + +! 假冒虛擬貨幣交易所網站詐騙 +||bianceance.com^ + +! 假冒串流影音網站詐騙 +||netfltiw.com^ + +! 低卡廣告 +||dad-api.dcard.tw^ +||xlate.dcard.tw^ + +! 假冒政府網站詐騙 +||nigov.tw^ +||oovgov.com^ +||scyjdm.com.tw^ +||avogov.com^ +||hhigov.com^ +||oiigov.com^ +||rvegov.com^ +||jjhrt.net^ +||jscgov.com^ +||rie.vtrgov.com^ +||ynrgov.com^ +||eiegov.com^ +||tw1988.link^ +||trkwis.com^ +||qiigov.tv^ +||viigov.tv^ +||lttgov.tv^ +||sigov.top^ +||vtigov.com^ +||vstgov.com^ +||trrgov.com^ +||uvvgov.com^ +||htsgov.com^ +||oiigov.com^ +||ucxgov.com^ +||wsflojgov.xyz^ +||wsfliagov.xyz^ +||wsflbwgov.xyz^ +||wsflikygov.xyz^ +||wsflojgov.xyz^ +||wsfliegov.xyz^ +||wsfltlwgov.xyz^ +||wsflzogov.xyz^ +||wsflbtgov.xyz^ +||twxgov.com^ +||twnjkgov.com^ +||twtwdfjgov.xyz^ +||twfgfjgov.shop^ + +||welfareml.com^ +||twysgov.com^ +||celgov.com^ +||tiigov.tv^ +||twsgov.me^ +||livekl.top^ +||jdcgov.com^ +||shukunjin.com^ +||vdegov.com^ + +||taiwan-free-store.com^ +||tw-track.com^ +||discord-i.com^ +||viewty.xyz^ +||tw-beaxfun.fun^ +||investing-reads.com^ +||adsv.svc.litv.tv^ +||vatrack.hinet.net^ +||sun.advividnetwork.com^ +||ad.setn.com^ +||elads.kocpc.com.tw^ +||spotirfy-help-b49b36.ingress-bonde.ewp.live^ +||acefinance.asia^ +||waitwhy.buzz^ +||lesartisansdubio.fr^ +||mohwgovl.com^ + +! 簡訊詐騙 \ No newline at end of file diff --git a/hosts.txt b/hosts.txt index 05b7378..060e581 100644 --- a/hosts.txt +++ b/hosts.txt @@ -197,8 +197,7 @@ ||lesartisansdubio.fr^ ||mohwgovl.com^ -! regex 規則 -! 簡訊詐騙 +! regex 規則 簡訊詐騙 /wsf.+gov\.xyz/ /tw.{3}gov\.com/ /tw\S{2}gov\.com/