From ef24107a24470ae8db11e99601152cd3aa29c2fa Mon Sep 17 00:00:00 2001 From: Vigers Ray Date: Sat, 17 Jan 2026 23:39:24 +0100 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D1=8B=20=D0=BD=D0=BE=D0=B2=D1=8B=D0=B5=20=D0=BC=D0=B5?= =?UTF-8?q?=D1=82=D0=BE=D0=B4=D1=8B=20=D0=B4=D0=BB=D1=8F=20=D0=B1=D0=BB?= =?UTF-8?q?=D0=BE=D0=BA=D0=B8=D1=80=D0=BE=D0=B2=D0=BA=D0=B8=20IP-=D0=B0?= =?UTF-8?q?=D0=B4=D1=80=D0=B5=D1=81=D0=BE=D0=B2=20=D1=81=20=D1=83=D0=BA?= =?UTF-8?q?=D0=B0=D0=B7=D0=B0=D0=BD=D0=B8=D0=B5=D0=BC=20=D0=BF=D1=80=D0=B8?= =?UTF-8?q?=D1=87=D0=B8=D0=BD=D1=8B=20=D0=B8=20=D0=B2=D1=80=D0=B5=D0=BC?= =?UTF-8?q?=D0=B5=D0=BD=D0=B8=20=D0=B4=D0=B5=D0=B9=D1=81=D1=82=D0=B2=D0=B8?= =?UTF-8?q?=D1=8F.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Content.Shared/Connection/IPBlocking/IIPBlockingSystem.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Content.Shared/Connection/IPBlocking/IIPBlockingSystem.cs b/Content.Shared/Connection/IPBlocking/IIPBlockingSystem.cs index b275a6493b..91fb4b3f70 100644 --- a/Content.Shared/Connection/IPBlocking/IIPBlockingSystem.cs +++ b/Content.Shared/Connection/IPBlocking/IIPBlockingSystem.cs @@ -1,3 +1,4 @@ +using System; using System.Net; namespace Content.Shared.Connection.IPBlocking; @@ -8,6 +9,10 @@ public interface IIPBlockingSystem bool IsBlocked(IPAddress ip); + void BlockIP(IPAddress ip, TimeSpan duration, string reason); + + void BlockIP(IPAddress ip, string reason); + bool CheckAndBlockSuspiciousLength(IPAddress ip, int length, string context); bool CheckAndBlockUnhandledMessageRate(IPAddress ip, string messageType);