From 80be124592c399bd5e07d149e62b6233a26e743e Mon Sep 17 00:00:00 2001 From: chahinebrini Date: Sun, 7 Jun 2026 13:26:16 +0200 Subject: [PATCH] =?UTF-8?q?fix(dns):=20blocklist=20als=20||domain^=20statt?= =?UTF-8?q?=20apex-only=20=E2=86=92=20blockt=20Subdomains?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Apex-only-Format (bare domain) blockte nur z.B. bet365.com, NICHT www.bet365.com — Casino-Content + Google-Ad-Links liegen aber auf www. Adblock-Syntax ||domain^ deckt Domain + alle Subdomains ab. Betrifft alle DNS-Plattformen (Mac/Windows/DoH-Server). Co-Authored-By: Claude Opus 4.8 --- backend/server/api/url-filter/blocklist.txt.get.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/backend/server/api/url-filter/blocklist.txt.get.ts b/backend/server/api/url-filter/blocklist.txt.get.ts index f7702cc..7f070a7 100644 --- a/backend/server/api/url-filter/blocklist.txt.get.ts +++ b/backend/server/api/url-filter/blocklist.txt.get.ts @@ -11,7 +11,10 @@ import { getActiveBlocklistDomains } from "../../db/domains"; */ export default defineEventHandler(async (event) => { const domains = await getActiveBlocklistDomains(); - const body = domains.map((d) => d.domain).join("\n") + "\n"; + // Adblock-Syntax `||domain^` blockt die Domain UND alle Subdomains (www, m, …). + // Plain-Domain-Format ist Apex-only — www.bet365.com etc. blieben sonst offen + // (Casino-Content liegt fast immer auf www / Google-Ad-Links zeigen dorthin). + const body = domains.map((d) => `||${d.domain}^`).join("\n") + "\n"; setHeader(event, "Content-Type", "text/plain; charset=utf-8"); setHeader(event, "Cache-Control", "public, max-age=300");