curl --request PUT \
--url https://app.aegister.com/api/v1/cloud-defender/{id}/countries \
--header 'Content-Type: application/json' \
--header 'X-Aegister-Token: <api-key>' \
--data '
{
"action": "block",
"countries": [
"KP",
"RU"
],
"tor": true
}
'{
"error": 0,
"messages": [],
"data": {
"action": "block",
"countries": [
"KP",
"RU"
],
"tor": true,
"unknown": false,
"mode": "test",
"test_hits": 0,
"test_since": "2026-10-28T09:30:00Z",
"created_at": "2026-10-28T09:30:00Z",
"edited_at": "2026-10-28T09:30:00Z"
}
}{
"error": 1,
"messages": [
"Invalid data provided",
"country_invalid"
]
}{
"error": 1,
"messages": []
}Protection lists
Set a Cloud Defender country rule
Create or change a domain’s country rule. action: block refuses the listed countries, action: allow accepts only them; tor and unknown decide what happens to Tor exits and addresses with no known country. A new rule starts in test, counting what it would have refused, until you set mode: enforced. Whitelisted addresses always pass. Applied within about two minutes. Owners and security officers with a live licence.
PUT
/
api
/
v1
/
cloud-defender
/
{id}
/
countries
curl --request PUT \
--url https://app.aegister.com/api/v1/cloud-defender/{id}/countries \
--header 'Content-Type: application/json' \
--header 'X-Aegister-Token: <api-key>' \
--data '
{
"action": "block",
"countries": [
"KP",
"RU"
],
"tor": true
}
'{
"error": 0,
"messages": [],
"data": {
"action": "block",
"countries": [
"KP",
"RU"
],
"tor": true,
"unknown": false,
"mode": "test",
"test_hits": 0,
"test_since": "2026-10-28T09:30:00Z",
"created_at": "2026-10-28T09:30:00Z",
"edited_at": "2026-10-28T09:30:00Z"
}
}{
"error": 1,
"messages": [
"Invalid data provided",
"country_invalid"
]
}{
"error": 1,
"messages": []
}Authorizations
Path Parameters
Body
application/json

