Configure access controls to restrict who can access your content. Use IP restrictions, geographic blocking, and authentication to protect sensitive resources.
| Method | Description |
|---|---|
| IP Restrictions | Allow/block specific IPs |
| Geo Blocking | Block by country/region |
| Token Auth | URL token validation |
{
"ip_access": {
"mode": "allowlist",
"ips": ["10.0.0.0/8", "192.168.1.0/24"]
}
}
{
"ip_access": {
"mode": "blocklist",
"ips": ["1.2.3.4", "5.6.7.8"]
}
}
{
"geo_blocking": {
"action": "block",
"countries": ["XX", "YY"]
}
}
function generateSignedUrl(url, secret, expiry) {
const expires = Math.floor(Date.now() / 1000) + expiry;
const signature = crypto
.createHmac("sha256", secret)
.update(url + expires)
.digest("hex");
return url + "?expires=" + expires + "&signature=" + signature;
}
curl -X GET https://api.Sudun.com/v1/domains/{domain}/access \
-H "Authorization: Bearer YOUR_API_KEY"
Need help? Contact support@Sudun.com