\MOD_dnsblock

Collection of methods to check ips against DNS Block Lists

An example for its use: $dnsblock = MOD_dnsblock::get(); // get the singleton instance if ($dnsblock->checkIp($ipStr)) {

// blocked

} else {

// not blocked

}

Summary

Methods
Properties
Constants
get()
checkIp()
checkRemoteIp()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
__construct()
$_instance
N/A

Properties

$_instance

$_instance : \MOD_dnsblock

Singleton instance

Type

\MOD_dnsblock

Methods

get()

get() : \PApps

singleton getter

Returns

\PApps

checkIp()

checkIp(string $ip) : int

Check ip and cache the result in a session variable

Parameters

string $ip

Returns

int —

On how many DNS Blocklists does $ip figure

checkRemoteIp()

checkRemoteIp() : int

Check remote ip

Returns

int —

On how many DNS Blocklists does the remote ip figure

__construct()

__construct()