Progressive Geoblock Add

Please note that in our new cloud panel, Zones are named as CDN Resources. (Zone ID = CDN Resource ID)

Using the information below, you can add a new Geoblock for your progressive zone.


Return Values

Example PHP Code

$curl_post_data = array(
    'user_key'   => 'Your User Key',
    'user_secret'  =>'Your User Secret',
    'zone_ids' => ['zoneid1', 'zoneid2'],
    'countries' => ['county_code1', 'country_code2']
$request_body = json_encode($curl_post_data);
$service_url = '';
$ch = curl_init($service_url);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST");                                                                    
curl_setopt($ch, CURLOPT_POSTFIELDS, $request_body);                                                                 
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);                                                                     
curl_setopt($ch, CURLOPT_HTTPHEADER, array(                                                                         
    'Content-Type: application/json',                                                                               
    'Content-Length: ' . strlen($request_body))                                                                      
$response = curl_exec($ch);
$decoded = json_decode($response);

Example Output

    "status": true,
    "opid": "576UWnEydPJfXAYB"