From 97185fe237f1b44e52d1220233f7ecfc7d5486db Mon Sep 17 00:00:00 2001 From: Fornax Date: Thu, 9 Nov 2023 10:44:17 +0100 Subject: [PATCH] Add more information to IP ban notification --- svelte/src/admin_panel/IPBans.svelte | 12 ++++++++++++ svelte/src/home_page/AddressReputation.svelte | 18 ++++++++++++++++++ svelte/src/util/Expandable.svelte | 5 +---- 3 files changed, 31 insertions(+), 4 deletions(-) diff --git a/svelte/src/admin_panel/IPBans.svelte b/svelte/src/admin_panel/IPBans.svelte index ee7842a..721b89a 100644 --- a/svelte/src/admin_panel/IPBans.svelte +++ b/svelte/src/admin_panel/IPBans.svelte @@ -6,6 +6,7 @@ import LoadingIndicator from "../util/LoadingIndicator.svelte"; let loading = true let rows = [] +let total_offences = 0 let expanded = false let creating = false @@ -20,6 +21,10 @@ const get_bans = async () => { throw new Error(resp.text()); } rows = await resp.json() + + total_offences = rows.reduce( + (acc, curr) => acc + curr.offences.length, 0, + ) } catch (err) { alert(err); } finally { @@ -83,6 +88,12 @@ onMount(get_bans);
+
+ Bans {rows.length} +
+
+ Offences {total_offences} +
+

+ That these files originated from your IP address does not + necessarily mean that they were uploaded by you. It's possible + that people on your home/business network are sharing the same + IP address. If you're using a VPN then there are often many + people using the same IP address. And some ISPs deploy CGNAT, in + which case there could be hundreds of people sharing the same IP + address. In all of these cases IPv6 is the solution, but most + ISPs are decades behind on implementing internet standards. They + just don't care. +

+

+ Now you may be asking: If IP banning is so unreliable, why are + you still using it? Well, I need to protect my service from + abuse somehow. The alternative is authenticating every user. + This adds another barrier to entry and generally complicates + things. +

If you would like to dispute your IP ban you can mail me at support@pixeldrain.com. Please do not mail unless you have a good diff --git a/svelte/src/util/Expandable.svelte b/svelte/src/util/Expandable.svelte index f4ba754..60ed16d 100644 --- a/svelte/src/util/Expandable.svelte +++ b/svelte/src/util/Expandable.svelte @@ -86,10 +86,7 @@ export let highlight = false height: auto; } .body { - display: flex; - padding: 0.4em; - flex-direction: column; - text-decoration: none; + padding: 0.5em; border-top: 1px solid var(--separator); }