From 7e29f3cb57ac936951e401f97340d93c46af20e0 Mon Sep 17 00:00:00 2001 From: Razvan Dimescu Date: Fri, 20 Mar 2026 12:58:25 +0200 Subject: [PATCH] add domain check endpoint and dashboard search box MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit GET /blocking/check/{domain} — returns whether a domain is blocked, the reason (exact match, parent domain, allowlist, disabled), and the matching rule. Dashboard sidebar has a "Check Domain" search box with inline results and one-click allow button. Co-Authored-By: Claude Opus 4.6 --- site/dashboard.html | 45 ++++++++++++++++++++++++++++++ src/api.rs | 9 ++++++ src/blocklist.rs | 68 +++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 122 insertions(+) diff --git a/site/dashboard.html b/site/dashboard.html index e49a840..d2b25cd 100644 --- a/site/dashboard.html +++ b/site/dashboard.html @@ -519,6 +519,22 @@ body {