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. +
+