# addIPBlackList {#addipblacklist}

**Parent topic:**[Functions](../../Functions/category.md)

## Syntax {#syntax}

`addIPBlackList(ips)`

## Arguments {#arguments}

**ips** is a STRING or IPADDR scalar/vector indicating one or more \(up to 65535\) IP addresses.

## Details {#details}

Add IP addresses to the blacklist. The blacklist feature is enabled when the first IP address is added. The whitelist and blacklist cannot be enabled simultaneously. After the blacklist feature is enabled, all the access requests from IP addresses in the blacklist are blocked.

This function can only be executed by an administrator and takes effect on the cluster.

## Examples {#examples}

``` {#codeblock_zq1_tms_c2c}
addIPBlackList(["1.1.1.1", "2.2.2.2", "3.3.3.3"])
```

Related functions: [removeIPBlackList](../r/removeipblacklist.md), [getIPBlackList](../g/getipblacklist.md)

