30, CURLOPT_POST => 1, CURLOPT_POSTFIELDS => $Post_Field, CURLOPT_RETURNTRANSFER => true ); curl_setopt_array($ch, $curl_options); $API_JSON_Result = curl_exec($ch); curl_close($ch); // Decode the JSON from our API $Decoded_JSON = json_decode($API_JSON_Result); // Check if the IP we're testing is a proxy server if ( isset($Decoded_JSON->$Visitor_IP->proxy) && $Decoded_JSON->$Visitor_IP->proxy == "yes" ) { // A proxy has been detected. return true; } else { // No proxy has been detected. return false; } } ?>