addAddress

fun addAddress(address: String, type: IPVersion = definedExternally)(source)

Adds a rule to block the given IP address.

Since

v15.0.0, v14.18.0

Parameters

address

An IPv4 or IPv6 address.

type='ipv4' Either 'ipv4' or 'ipv6'.