From: Michael Tremer Date: Tue, 6 Jan 2026 11:34:09 +0000 (+0000) Subject: dnsbl: Show false positives X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=14bf56530b06f97fdc182ef7fe0c8b8889b1bd20;p=ipfire.org.git dnsbl: Show false positives Signed-off-by: Michael Tremer --- diff --git a/src/backend/dnsbl.py b/src/backend/dnsbl.py index cd830938..0cbf230f 100644 --- a/src/backend/dnsbl.py +++ b/src/backend/dnsbl.py @@ -287,6 +287,9 @@ class Source(Model): # Dead Domains dead_domains : int + # False Positives + false_positives: int + def __eq__(self, other): if isinstance(other, self.__class__): return self.name == other.name diff --git a/src/templates/dnsbl/lists/sources.html b/src/templates/dnsbl/lists/sources.html index 1ccf3e91..b19cf1a5 100644 --- a/src/templates/dnsbl/lists/sources.html +++ b/src/templates/dnsbl/lists/sources.html @@ -64,6 +64,14 @@ {{ _("Listed Domains") }} + + + {{ _("False Positives") }} + + + + {{ _("Dead Domains") }} + @@ -86,16 +94,24 @@ {{ locale.format_date(source.updated_at, shorter=True) }} + {# Total Domains #} {{ format_number(source.total_domains) }} + -
+ {# False Positives #} + + {{ format_number(source.false_positives) }} + - {# Dead Domains #} + {# Dead Domains #} + {% if source.total_domains and source.dead_domains %} - - {{ _("Dead Domains: %s") % format_percent(source.dead_domains / source.total_domains) }} - + {{ format_percent(source.dead_domains / source.total_domains) }} + {% else %} + + {{ _("N/A") }} + {% end %}