Documentation

Network
in package

Network management with white, grey, black lists getters/setters and IP getters

Table of Contents

Properties

$BlackList  : array<string|int, mixed>
Banned IP adress
$GreyList  : array<string|int, mixed>
Authorized IP adress with supervision
$WhiteList  : array<string|int, mixed>
Authorized IP adress

Methods

addBlackList()  : mixed
addGreyList()  : mixed
addWhiteList()  : mixed
createBlackList()  : mixed
createGreyList()  : mixed
createWhiteList()  : mixed
deleteBlackList()  : mixed
deleteGreyList()  : mixed
deleteWhiteList()  : mixed
getBlackList()  : mixed
getClientIP()  : string
Get the client IP adress
getGreyList()  : mixed
getIPv4()  : bool
Get the IPV4 format of the ip adress
getIPv6()  : bool
Get the IPV6 format of the ip adress
getWhiteList()  : mixed

Properties

$BlackList

Banned IP adress

private static array<string|int, mixed> $BlackList

List of IP adress

$GreyList

Authorized IP adress with supervision

private static array<string|int, mixed> $GreyList

List of IP adress

$WhiteList

Authorized IP adress

private static array<string|int, mixed> $WhiteList

List of IP adress

Methods

addBlackList()

public static addBlackList(mixed $AnIPAdress) : mixed
Parameters
$AnIPAdress : mixed

addGreyList()

public static addGreyList(mixed $AnIPAdress) : mixed
Parameters
$AnIPAdress : mixed

addWhiteList()

public static addWhiteList(mixed $AnIPAdress) : mixed
Parameters
$AnIPAdress : mixed

createBlackList()

public static createBlackList(mixed $AList) : mixed
Parameters
$AList : mixed

createGreyList()

public static createGreyList(mixed $AList) : mixed
Parameters
$AList : mixed

createWhiteList()

public static createWhiteList(mixed $AList) : mixed
Parameters
$AList : mixed

deleteBlackList()

public static deleteBlackList() : mixed

deleteGreyList()

public static deleteGreyList() : mixed

deleteWhiteList()

public static deleteWhiteList() : mixed

getBlackList()

public static getBlackList() : mixed

getClientIP()

Get the client IP adress

public static getClientIP() : string
Return values
string

IP adress

getGreyList()

public static getGreyList() : mixed

getIPv4()

Get the IPV4 format of the ip adress

public static getIPv4(mixed $ip) : bool
Parameters
$ip : mixed

IP adress

Return values
bool

getIPv6()

Get the IPV6 format of the ip adress

public static getIPv6(mixed $ip) : bool
Parameters
$ip : mixed

IP adress

Return values
bool

getWhiteList()

public static getWhiteList() : mixed

        
On this page

Search results