curl --request POST \
--url https://app.aegister.com/api/v1/cloud-defender/{id}/restricted-paths \
--header 'Content-Type: application/json' \
--header 'X-Aegister-Token: <api-key>' \
--data '
{
"preset": "wordpress",
"allowed": [
"203.0.113.10",
"2001:db8:10::/64"
],
"countries": [
"IT"
]
}
'{
"error": 0,
"messages": [],
"data": {
"id": 7,
"label": "WordPress admin",
"prefixes": [
"/wp-admin/",
"/wp-login.php"
],
"exceptions": [
"/wp-admin/admin-ajax.php"
],
"allowed": [
"203.0.113.10",
"2001:db8:10::/64"
],
"countries": [
"IT"
],
"mode": "test",
"test_hits": 0,
"test_since": "2026-10-28T09:30:00Z",
"created_at": "2026-10-28T09:30:00Z"
}
}{
"error": 1,
"messages": [
"path_invalid",
"net_invalid",
"country_invalid"
]
}{
"error": 1,
"messages": []
}Protection lists
Restrict a page on Cloud Defender
Restrict one or more paths of a domain to the addresses you list, with optional exceptions. Use a preset (wordpress, joomla, drupal, phpmyadmin) for a common admin area, or give your own prefixes. A new restricted page starts in test: Cloud Defender logs what it would refuse and lets it through, until you switch it to enforced. Owners and security officers with a live licence.
POST
/
api
/
v1
/
cloud-defender
/
{id}
/
restricted-paths
curl --request POST \
--url https://app.aegister.com/api/v1/cloud-defender/{id}/restricted-paths \
--header 'Content-Type: application/json' \
--header 'X-Aegister-Token: <api-key>' \
--data '
{
"preset": "wordpress",
"allowed": [
"203.0.113.10",
"2001:db8:10::/64"
],
"countries": [
"IT"
]
}
'{
"error": 0,
"messages": [],
"data": {
"id": 7,
"label": "WordPress admin",
"prefixes": [
"/wp-admin/",
"/wp-login.php"
],
"exceptions": [
"/wp-admin/admin-ajax.php"
],
"allowed": [
"203.0.113.10",
"2001:db8:10::/64"
],
"countries": [
"IT"
],
"mode": "test",
"test_hits": 0,
"test_since": "2026-10-28T09:30:00Z",
"created_at": "2026-10-28T09:30:00Z"
}
}{
"error": 1,
"messages": [
"path_invalid",
"net_invalid",
"country_invalid"
]
}{
"error": 1,
"messages": []
}Authorizations
Path Parameters
Body
application/json

