How to Check if an IP Address is a Bot in PHP

composer require cloudmersive/cloudmersive_validate_api_client
Next, call the function by inputting the IP address into the following code:
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: Apikey
$config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Apikey', 'YOUR_API_KEY');
$apiInstance = new Swagger\Client\Api\IPAddressApi(

new GuzzleHttp\Client(),
$value = "value_example"; // string | IP address to check, e.g. \"\". The input is a string so be sure to enclose it in double-quotes.
try {
$result = $apiInstance->iPAddressIsBot($value);
} catch (Exception $e) {
echo 'Exception when calling IPAddressApi->iPAddressIsBot: ', $e->getMessage(), PHP_EOL;



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store


There’s an API for that. Cloudmersive is a leader in Highly Scalable Cloud APIs.