# Proxy Blocker API endpoint
The Evolution Host proxy_blocker GET endpoint returns the likelihood of an IP being a VPN or proxy. The proxy blocker service can be purchased via https://evolution-host.com/proxy-blocker.php
Parameters
account
: Your account key - which can be found in the Settings area of the Evolution Host client area: https://evolution-host.com/controlPanelservice_key
: The unique key for your proxy blocker service. The key is included in your initial proxy blocker purchase E-mail.ip
: The IPv4 or IPv6 address that you would like to checkaction
: The API action to carry outResponse
The API response is a JSON array containing the lookup result.
verdict
: A score out of 100 on the likelihood of whether an IP address is a proxy address or not (with 100 being the highest likelihood)country_name
: The full country name the IP address geo-locates tocountry_code
: The two letter country code the IP address geo-locates to$url = "https://evolution-host.com/api/proxy-blocker.php";
$action = "check";
$callData = http_build_query([
'account' => 'YOUR_ACCOUNT_KEY', //Obtain key from the Evolution Host client panel
'service_key' => 'YOUR_SERVICE_KEY', //Obtain key from your purchase E-mail
'ip' => '51.161.50.218',
'action' => $action,
]);
$ch = curl_init($url . '?' . $callData);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPGET, true);
$result = curl_exec($ch);
if($result != false)
{
$result = json_decode($result);
if (json_last_error() !== JSON_ERROR_NONE)
{
echo 'JSON Error: ' . json_last_error_msg();
}
echo '<pre>' . json_encode($result, JSON_PRETTY_PRINT) . '</pre>';
}
curl_close($ch);
Example Response
{ "verdict": 100, "country_name": "France", "country_code": "FR" }
Error Codes
Evolution Host Proxy Blocker API errors contain an error_code and description field. The description field contains more information about the error.
The following are the possible error codes returned by the proxy blocker API:
Security
The Evolution Host API uses TLS/HTTPS to encrypt all communication between HTTP the client and server. The API requires authentication using the user's account key.
Support
If you have any questions or need assistance with the Evolution Host API, please contact Evolution Host support at support@evolution-host.com.