<?php
// Define the API URL and the IP you want to test
$ip = "51.158.234.140" ; // Replace with the IP you want to check
$api_key = "asifjamali83" ; // Replace with your API key
// Construct the API URL
$api_url = "https://s...content-available-to-author-only...t.ws/api.php?ip=" . $ip . "&apikey=" . $api_key ;
// Send the GET request to the API
// Check if the response is not empty and then output it
if ( $response !== false ) {
// Decode the JSON response
// Check if the fraud score exists in the response
if ( isset ( $data [ 'fraud_score' ] ) ) { echo "IP: " . $data [ 'ip' ] . "<br>" ;
echo "Fraud Score: " . $data [ 'fraud_score' ] . "<br>" ;
} else {
echo "No fraud score found in the response." ;
}
} else {
echo "Error: Could not retrieve data from the API." ;
}
?>
PD9waHAKLy8gRGVmaW5lIHRoZSBBUEkgVVJMIGFuZCB0aGUgSVAgeW91IHdhbnQgdG8gdGVzdAokaXAgPSAiNTEuMTU4LjIzNC4xNDAiOyAvLyBSZXBsYWNlIHdpdGggdGhlIElQIHlvdSB3YW50IHRvIGNoZWNrCiRhcGlfa2V5ID0gImFzaWZqYW1hbGk4MyI7IC8vIFJlcGxhY2Ugd2l0aCB5b3VyIEFQSSBrZXkKCi8vIENvbnN0cnVjdCB0aGUgQVBJIFVSTAokYXBpX3VybCA9ICJodHRwczovL3MuLi5jb250ZW50LWF2YWlsYWJsZS10by1hdXRob3Itb25seS4uLnQud3MvYXBpLnBocD9pcD0iIC4gJGlwIC4gIiZhcGlrZXk9IiAuICRhcGlfa2V5OwoKLy8gU2VuZCB0aGUgR0VUIHJlcXVlc3QgdG8gdGhlIEFQSQokcmVzcG9uc2UgPSBmaWxlX2dldF9jb250ZW50cygkYXBpX3VybCk7CgovLyBDaGVjayBpZiB0aGUgcmVzcG9uc2UgaXMgbm90IGVtcHR5IGFuZCB0aGVuIG91dHB1dCBpdAppZiAoJHJlc3BvbnNlICE9PSBmYWxzZSkgewogICAgLy8gRGVjb2RlIHRoZSBKU09OIHJlc3BvbnNlCiAgICAkZGF0YSA9IGpzb25fZGVjb2RlKCRyZXNwb25zZSwgdHJ1Z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