<?php

function testProxy($proxyUrl) {
    $ch = curl_init();
    curl_setopt($ch, CURLOPT_URL, "https://i...content-available-to-author-only...o.io/ip");
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

    // Set proxy
    curl_setopt($ch, CURLOPT_PROXY, $proxyUrl);

    // Timeout (optional)
    curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 10);
    curl_setopt($ch, CURLOPT_TIMEOUT, 15);

    // For HTTPS URLs
    curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);

    $response = curl_exec($ch);

    if (curl_errno($ch)) {
        echo "Error: " . curl_error($ch) . "\n";
    } else {
        echo "IP returned from proxy: " . trim($response) . "\n";
    }

    curl_close($ch);
}

// Example: test one of your proxies
$proxy = "http://wkpaqgad:c5g3ta47fh8m@38.153.152.244:9594"; // replace with actual one from config
testProxy($proxy);