Set Ban

setban "subnet" "add|remove" (bantime) (absolute)

To update ban list, this command is used . Use "remove" to remove a ban, and give the duration of the ban in seconds. Returns "null" if successful. You can “add” ip into ban list with same command.

setban "116.171.112.45" "add" 36000

null

listbanned

[
{
"address": "116.171.112.45/32",
"banned_until": 1547506400,
"ban_created": 15475042000,
"ban_reason": "manually added"
}
]