Class TRALSecurity
Unit
Declaration
type TRALSecurity = class(TPersistent)
Description
Base class for Server Security definitions
Hierarchy
- TObject
- TPersistent
- TRALSecurity
Overview
Methods
![]() |
constructor Create; |
![]() |
destructor Destroy; override; |
![]() |
function CheckBlockClientIP(const AClientIP: StringRAL): boolean; |
![]() |
function CheckBlockClientTry(const AClienteIP: StringRAL): boolean; |
![]() |
function CheckFlood(const AClientIP: StringRAL): boolean; |
![]() |
function GetBlockClient(const AClientIP: StringRAL): TRALClientBlockList; |
![]() |
function GetBlockClientTry(const AClientIP: StringRAL): integer; |
![]() |
function GetClientList(const AClientIP: StringRAL): TRALClientList; |
![]() |
procedure BlockClient(const AClientIP: StringRAL); |
![]() |
procedure ClearExpiredIPs; |
![]() |
procedure UnblockClient(const AClientIP: StringRAL); |
Properties
![]() |
property BlackIPList: TStringList read GetBlackIPList write SetBlackIPList; |
![]() |
property BruteForce: TRALBruteForceProtection read FBruteForce write SetBruteForce; |
![]() |
property FloodTimeInterval: IntegerRAL read FFloodTimeInterval write SetFloodTimeInterval; |
![]() |
property Options: TRALSecurityOptions read FOptions write SetOptions; |
![]() |
property WhiteIPList: TStringList read GetWhiteIPList write SetWhiteIPList; |
Description
Methods
![]() |
constructor Create; |
![]() |
destructor Destroy; override; |
![]() |
function CheckBlockClientIP(const AClientIP: StringRAL): boolean; |
|
Verifies if the Client IP is blacklisted | |
![]() |
function CheckBlockClientTry(const AClienteIP: StringRAL): boolean; |
|
Checks if the number de tries of client exceed the established limit | |
![]() |
function CheckFlood(const AClientIP: StringRAL): boolean; |
|
Verifies if the incomming IP is known for request flooding | |
![]() |
function GetBlockClient(const AClientIP: StringRAL): TRALClientBlockList; |
|
Gets a client block object from the list of blocked IPs | |
![]() |
function GetBlockClientTry(const AClientIP: StringRAL): integer; |
|
Gets the number of tries to block client, in case client is not blocked return zero | |
![]() |
function GetClientList(const AClientIP: StringRAL): TRALClientList; |
|
Gets a client object from the list of blocked IPs | |
![]() |
procedure BlockClient(const AClientIP: StringRAL); |
|
Adds the Client IP to the internal blocked IP list | |
![]() |
procedure ClearExpiredIPs; |
|
Removes the IPs that are stored longer than the preconfigured duration | |
![]() |
procedure UnblockClient(const AClientIP: StringRAL); |
|
Removes an IP from the list of blocked IPs | |
Properties
![]() |
property BlackIPList: TStringList read GetBlackIPList write SetBlackIPList; |
|
List of IPs that will not receive a response from the server | |
![]() |
property BruteForce: TRALBruteForceProtection read FBruteForce write SetBruteForce; |
|
Set of configurations to block | |
![]() |
property FloodTimeInterval: IntegerRAL read FFloodTimeInterval write SetFloodTimeInterval; |
|
Time in miliseconds between requests by the same IP that the server will allow | |
![]() |
property Options: TRALSecurityOptions read FOptions write SetOptions; |
|
Flags that will enable/disable security features | |
![]() |
property WhiteIPList: TStringList read GetWhiteIPList write SetWhiteIPList; |
|
List of IPs that will always receive a response from the server and won't be blocked | |
GitHub Repository
Generated by PasDoc 0.16.0.

