Interface IDoSDefender
Interface for a DoS defender service.
Namespace: Fibula.Security.Contracts
Assembly: Fibula.Security.Contracts.dll
Syntax
public interface IDoSDefender
Methods
| Improve this Doc View SourceBlockAddress(String)
Blocks a given address.
Declaration
void BlockAddress(string addressStr)
Parameters
Type | Name | Description |
---|---|---|
System.String | addressStr | The address to block. |
IsBlocked(String)
Checks if a given address is blocked.
Declaration
bool IsBlocked(string addressStr)
Parameters
Type | Name | Description |
---|---|---|
System.String | addressStr | The address to check for. |
Returns
Type | Description |
---|---|
System.Boolean | True if the address is blocked, false otherwise. |
LogConnectionAttempt(String)
Logs a connection attempt.
Declaration
void LogConnectionAttempt(string addressStr)
Parameters
Type | Name | Description |
---|---|---|
System.String | addressStr | The address from which the connection attempt took place. |