VaultPress::do_c_block_firewall PHP Method

do_c_block_firewall() public method

public do_c_block_firewall ( )
    function do_c_block_firewall()
    {
        //	Perform the firewall check by class-c ip blocks
        $rxs = $this->get_option('service_ips');
        $service_ips_external = get_option('vaultpress_service_ips_external');
        if (!empty($rxs['data']) && !empty($service_ips_external['data'])) {
            $rxs = array_merge($rxs['data'], $service_ips_external['data']);
        }
        if (!$rxs) {
            return false;
        }
        return $this->validate_ip_address($rxs);
    }
VaultPress