PHP code example of as207111 / whois
1. Go to this page and download the library: Download as207111/whois library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
as207111 / whois example snippets
use AS207111\Whois\Client;
-api-access-token');
$ipAddress = '2001:67c:770::';
$result = $client->whois(['ip_address' => $ipAddress]);
if ($result->isSuccess()) {
$usingVpn = $result->getData()->privacy->proxy;
if ($usingVpn) {
print(sprintf('%s is using a proxy service like vpn, proxy or tor!', $ipAddress));
} else {
print(sprintf('%s is not using a proxy service!', $ipAddress));
}
} else {
print('Cannot reach whois database.');
}