Blacklist IP addresses
POST
https://api.vpsbg.eu/v1/network-protection/{id}/blacklistThis endpoint allows you to set a final list of IP addresses in the blacklist.
⚠️ All previously added IP addresses in the list will be removed.
If you didn't have blacklisted IPs before, the blacklist module will be automatically enabled.
Request
Path Params
id
integer
required
Your IP Address identificator.
Body Params application/json
networks
array[string]
required
>= 1 items<= 1000 items
Example
{
"networks": [
"100.100.200.100",
"100.100.100.0/24"
]
}
Request samples
Responses
Success(200)
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
active
boolean
required
networks
array[string]
required
Example
{
"active": true,
"networks": [
"100.100.100.0/24",
"100.100.200.100/32"
]
}
Last modified: 2 months ago