]> git.ipfire.org Git - ipfire.org.git/commitdiff
dnsbl: Show false positives
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 6 Jan 2026 11:34:09 +0000 (11:34 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 6 Jan 2026 11:34:09 +0000 (11:34 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/backend/dnsbl.py
src/templates/dnsbl/lists/sources.html

index cd83093807ea46018b35a149470180a8d74fb97c..0cbf230f6461f5b8117b47ffee323f6c7cdf3a18 100644 (file)
@@ -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
index 1ccf3e91a7954fd2004d14eea97721681d0f55f6..b19cf1a5ebb5684ae6b6e6a0ac2cd38f77ad01bd 100644 (file)
                                                <th class="has-text-right">
                                                        {{ _("Listed Domains") }}
                                                </th>
+
+                                               <th class="has-text-right">
+                                                       {{ _("False Positives") }}
+                                               </th>
+
+                                               <th class="has-text-right">
+                                                       {{ _("Dead Domains") }}
+                                               </th>
                                        </tr>
                                </thead>
 
                                                                {{ locale.format_date(source.updated_at, shorter=True) }}
                                                        </td>
 
+                                                       {# Total Domains #}
                                                        <td class="has-text-right">
                                                                {{ format_number(source.total_domains) }}
+                                                       </td>
 
-                                                               <br>
+                                                       {# False Positives #}
+                                                       <td class="has-text-right">
+                                                               {{ format_number(source.false_positives) }}
+                                                       </td>
 
-                                                               {# Dead Domains #}
+                                                       {# Dead Domains #}
+                                                       <td class="has-text-right">
                                                                {% if source.total_domains and source.dead_domains %}
-                                                                       <small>
-                                                                               {{ _("Dead Domains: %s") % format_percent(source.dead_domains / source.total_domains) }}
-                                                                       </small>
+                                                                       {{ format_percent(source.dead_domains / source.total_domains) }}
+                                                               {% else %}
+                                                                       <span class="has-text-grey">
+                                                                               {{ _("N/A") }}
+                                                                       </span>
                                                                {% end %}
                                                        </td>
                                                </tr>