protected function address_explicitly_blocked($addr) {
        $blockedhosts = $this->get_blacklisted_hosts_by_category();
        $iphostsblocked = array_merge($blockedhosts['ipv4'], $blockedhosts['ipv6']);
        return address_in_subnet($addr, implode(',', $iphostsblocked));
    }
protected function address_explicitly_blocked($addr) {
        $blockedhosts = $this->get_blacklisted_hosts_by_category();
        $iphostsblocked = array_merge($blockedhosts['ipv4'], $blockedhosts['ipv6']);
        return address_in_subnet($addr, implode(',', $iphostsblocked));
    }
protected function address_explicitly_blocked ( $ addr ) { $ blockedhosts = $ this -> get_blacklisted_hosts_by_category ( ) ; $ iphostsblocked = array_merge ( $ blockedhosts [ 'ipv4' ] , $ blockedhosts [ 'ipv6' ] ) ; return address_in_subnet ( $ addr , implode ( ',' , $ iphostsblocked ) ) ; }
Checks whether the input address is blocked by at any of the IPv4 or IPv6 address rules.

@param string $addr the ip address to check.
@return bool true if the address is covered by an entry in the blacklist, false otherwise.
Checks whether the input address is blocked by at any of the IPv4 or IPv6 address rules .