class Ip

Methods

static 
getInstance()

No description

isBehindProxy()

Method to check the application is behind proxy or not

getProxyIp()

Get proxy ip address

get()

Get client IP

setSourceRemoteIp(string $serverKey)

Setter for default $_SERVER key to get ip address of client

setProxyKey(string $proxyKey)

Set key to get real ip client at reverse proxy

__toString()

short cut for access "get" method

Details

at line 43
static getInstance()

No description

at line 53
isBehindProxy()

Method to check the application is behind proxy or not

at line 61
getProxyIp()

Get proxy ip address

at line 69
get()

Get client IP

at line 77
setSourceRemoteIp(string $serverKey)

Setter for default $_SERVER key to get ip address of client

Parameters

string $serverKey

at line 85
setProxyKey(string $proxyKey)

Set key to get real ip client at reverse proxy

Parameters

string $proxyKey

at line 93
__toString()

short cut for access "get" method