From 8a79cf129117faf6dae3296bb515d38f7a22ae8f Mon Sep 17 00:00:00 2001 From: RonniSkansing Date: Thu, 1 Oct 2026 20:40:30 +0200 Subject: [PATCH] add warning on allow list filter with stale ASN data Signed-off-by: RonniSkansing --- frontend/src/routes/filter/+page.svelte | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/frontend/src/routes/filter/+page.svelte b/frontend/src/routes/filter/+page.svelte index 759ec1a7..b830ed40 100644 --- a/frontend/src/routes/filter/+page.svelte +++ b/frontend/src/routes/filter/+page.svelte @@ -97,6 +97,15 @@ modalText = getModalText('Filter', modalMode); } + // an allow filter that lists ASNs blocks every visitor while no ASN data is + // downloaded, because no visitor IP can resolve to an ASN and an allow list + // denies what it can not match + $: asnAllowBlocksAll = + formValues.allowed === true && + formValues.asns && + formValues.asns.length > 0 && + !asnAvailable; + // hooks onMount(() => { if (appStateService.getContext()) { @@ -540,6 +549,21 @@ bind:value={formValues.allowed} /> {/if} + {#if asnAllowBlocksAll} +
+

+ This allow filter lists ASNs but no ASN data is downloaded, so it will block + every visitor. Download the ASN data under + Settings, IP Data + or remove the ASN rules. +

+
+ {/if}