Добавлены новые методы для блокировки IP-адресов с указанием причины и времени действия.
This commit is contained in:
parent
7aac95145c
commit
ef24107a24
1 changed files with 5 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue