\Quark\UtilsClientIP

ClientIP class.

Summary

Methods
Properties
Constants
get()
validate()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$keys
N/A

Properties

$keys

$keys : array

Type

array — Server keys.

Methods

get()

get(boolean  $validate = true) : string|null

Get client IP address.

Parameters

boolean $validate

Validate IP address range.

Returns

string|null —

Client IP address.

validate()

validate(string  $ip) : boolean

Validate an IP address.

Parameters

string $ip

IP address to validate.

Returns

boolean —

True if it's a valid IP address, false otherwise.