See Release Notes
Long Term Support Release
Differences Between: [Versions 39 and 311] [Versions 39 and 400] [Versions 39 and 401] [Versions 39 and 402] [Versions 39 and 403]
1 <?php 2 3 namespace GeoIp2\Model; 4 5 use GeoIp2\Util; 6 7 /** 8 * This class provides the GeoIP2 Anonymous IP model. 9 * 10 * @property-read bool $isAnonymous This is true if the IP address belongs to 11 * any sort of anonymous network. 12 * @property-read bool $isAnonymousVpn This is true if the IP address is 13 * registered to an anonymous VPN provider. If a VPN provider does not 14 * register subnets under names associated with them, we will likely only 15 * flag their IP ranges using the isHostingProvider property. 16 * @property-read bool $isHostingProvider This is true if the IP address belongs 17 * to a hosting or VPN provider (see description of isAnonymousVpn property). 18 * @property-read bool $isPublicProxy This is true if the IP address belongs to 19 * a public proxy. 20 * @property-read bool $isTorExitNode This is true if the IP address is a Tor 21 * exit node. 22 * @property-read string $ipAddress The IP address that the data in the model is 23 * for. 24 * @property-read string $network The network in CIDR notation associated with 25 * the record. In particular, this is the largest network where all of the 26 * fields besides $ipAddress have the same value. 27 */ 28 class AnonymousIp extends AbstractModel 29 { 30 protected $isAnonymous; 31 protected $isAnonymousVpn; 32 protected $isHostingProvider; 33 protected $isPublicProxy; 34 protected $isTorExitNode; 35 protected $ipAddress; 36 protected $network; 37 38 /** 39 * @ignore 40 * 41 * @param mixed $raw 42 */ 43 public function __construct($raw) 44 { 45 parent::__construct($raw); 46 47 $this->isAnonymous = $this->get('is_anonymous'); 48 $this->isAnonymousVpn = $this->get('is_anonymous_vpn'); 49 $this->isHostingProvider = $this->get('is_hosting_provider'); 50 $this->isPublicProxy = $this->get('is_public_proxy'); 51 $this->isTorExitNode = $this->get('is_tor_exit_node'); 52 $ipAddress = $this->get('ip_address'); 53 $this->ipAddress = $ipAddress; 54 $this->network = Util::cidr($ipAddress, $this->get('prefix_len')); 55 } 56 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body