Adds the given IPs to ban list
Bans the single IP address or an array of addresses for the certain period of time
- Available on all panels
 
- application/json
 
Request Body required
addresses object[]
array of objects with IP addresses (string) and ban time in seconds (integer)
address stringPossible values:
>= 7 charactersand<= 15 charactersstring that contains banned ip address
time integertime of ban in seconds
Responses
- 200
 - 400
 - 401
 
OK
- Missed parameter
 - Required parameter is of the wrong type
 - Wrong IP address
 
- application/json
 
- Schema
 - Example (from schema)
 - Wrong parameter type
 - Wrong I P
 - Missed parameter
 
Schema
- error string
error type/info
 
{
  "error": "Wrong JSON body"
}
{
  "error": "Wrong parameter type"
}
{
  "error": "Wrong IP address (192.168.1.80 is on the white list)"
}
{
  "error": "Missed parameter"
}
Unauthorized request. Log In
- application/json
 
- Schema
 - Example (from schema)
 - Log In
 
Schema
- error string
error message
 
{
  "error": "Log In"
}
{
  "error": "Log In"
}
Loading...