From: Michael Tremer Date: Wed, 31 Dec 2025 15:42:00 +0000 (+0000) Subject: dnsbl: Split whitelisted domains from added domains X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=901b57966279e8fa5a09712d6d7a077a987b3682;p=ipfire.org.git dnsbl: Split whitelisted domains from added domains Signed-off-by: Michael Tremer --- diff --git a/src/backend/dnsbl.py b/src/backend/dnsbl.py index 3f590827..cd830938 100644 --- a/src/backend/dnsbl.py +++ b/src/backend/dnsbl.py @@ -353,8 +353,11 @@ class History(Model): # Timestamp ts: datetime.datetime - # Domains Added - domains_added: typing.List[str] = [] + # Domains Blocked + domains_blocked: typing.List[str] = [] + + # Domains Allowed + domains_allowed: typing.List[str] = [] # Domains Removed domains_removed: typing.List[str] = [] diff --git a/src/templates/dnsbl/lists/history.html b/src/templates/dnsbl/lists/history.html index fa281920..c6cb252e 100644 --- a/src/templates/dnsbl/lists/history.html +++ b/src/templates/dnsbl/lists/history.html @@ -58,9 +58,15 @@ {# Tags #} - {% if event.domains_added %} + {% if event.domains_allowed %} + + + {{ len(event.domains_allowed) }} + + {% end %} + + {% if event.domains_blocked %} - + {{ len(event.domains_added) }} + + {{ len(event.domains_blocked) }} {% end %} @@ -72,16 +78,23 @@