AnonymousIp
in package
implements
JsonSerializable
This class provides the GeoIP2 Anonymous IP model.
Table of Contents
Interfaces
- JsonSerializable
Properties
- $ipAddress : string
- $isAnonymous : bool
- $isAnonymousVpn : bool
- $isHostingProvider : bool
- $isPublicProxy : bool
- $isResidentialProxy : bool
- $isTorExitNode : bool
- $network : string
Methods
- jsonSerialize() : array<string, mixed>|null
Properties
$ipAddress read-only
public
string
$ipAddress
the IP address that the data in the model is for
$isAnonymous read-only
public
bool
$isAnonymous
this is true if the IP address belongs to any sort of anonymous network
$isAnonymousVpn read-only
public
bool
$isAnonymousVpn
This is true if the IP address is registered to an anonymous VPN provider. If a VPN provider does not register subnets under names associated with them, we will likely only flag their IP ranges using the isHostingProvider property.
$isHostingProvider read-only
public
bool
$isHostingProvider
this is true if the IP address belongs to a hosting or VPN provider (see description of isAnonymousVpn property)
$isPublicProxy read-only
public
bool
$isPublicProxy
this is true if the IP address belongs to a public proxy
$isResidentialProxy read-only
public
bool
$isResidentialProxy
this is true if the IP address is on a suspected anonymizing network and belongs to a residential ISP
$isTorExitNode read-only
public
bool
$isTorExitNode
this is true if the IP address is a Tor exit node
$network read-only
public
string
$network
The network in CIDR notation associated with the record. In particular, this is the largest network where all of the fields besides $ipAddress have the same value.
Methods
jsonSerialize()
public
jsonSerialize() : array<string, mixed>|null