From a4a88038d5e4c66a763fd8b2682a345584f742a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B8=A2=E4=BD=8E=E5=90=B8?= Date: Sat, 29 Jul 2023 19:55:18 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20TW165=20=E6=96=B0=E5=A2=9E=E8=BD=89?= =?UTF-8?q?=E5=9D=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- AutoBuild/tw_165.py | 6 ++++-- README.md | 4 ++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/AutoBuild/tw_165.py b/AutoBuild/tw_165.py index c77eed0..366bd4e 100644 --- a/AutoBuild/tw_165.py +++ b/AutoBuild/tw_165.py @@ -63,9 +63,11 @@ def main(): filename = 'TW165.txt' with open(filename, 'w') as f: - f.write('^\n'.join('||' + e for e in domains.keys())) - + f.write(''.join(f'||{e}^\n' for e in domains.keys())) + filename = 'TW165-redirect.txt' + with open(filename, 'w') as f: + f.write(''.join(f'||{e}^$dnsrewrite=NOERROR;A;34.102.218.71\n' for e in domains.keys())) if __name__ == '__main__': diff --git a/README.md b/README.md index 8f27c8a..d410bad 100644 --- a/README.md +++ b/README.md @@ -52,6 +52,10 @@ https://t.me/adblock_tw - +> 由台灣 165 反詐騙提供,並帶有覆寫功能(打開符合規則的網址後會提示已被 165 封鎖)。 + +- + > 由台灣 165 反詐騙提供,純 domain 此為特定用途。 -