# Add or remove a IP from banned list Attempts add or remove a IP/Subnet from the banned list. Endpoint: GET /daemon/setban Version: 6.6.1 Security: ZelID ## Query parameters: - `ip` (string, required) The IP/Subnet (see getpeerinfo for nodes ip) with a optional netmask (default is /32 = single ip) Example: "188.239.61.210" - `command` (string, required) Use 'add' to add a IP/Subnet to the list, 'remove' to remove a IP/Subnet from the list Enum: "add", "remove" - `bantime` (integer) Time in seconds how long (or until when if absolute is set) the ip is banned (0 or empty means using the default time of 24h which can also be overwritten by the -bantime startup argument) Example: 3500 - `absolute` (boolean) If set, the bantime must be a absolute timestamp in seconds since epoch (Jan 1 1970 GMT) Example: - =`commandbantime1590368400absolutetrue` Enum: false, true ## Response 200 fields (application/json): - `status` (string) Explanation of status Enum: "success", "error" - `data` (string) Null. Status will return with success if call/command was successful.