GeoIP2 PHP API v3.3.0

Anonymizer
in package
implements JsonSerializable

Contains data for the anonymizer record associated with an IP address.

This record is returned by the GeoIP2 Insights web service.

Table of Contents

Interfaces

JsonSerializable

Properties

$confidence  : int|null
$isAnonymous  : bool
$isAnonymousVpn  : bool
$isHostingProvider  : bool
$isPublicProxy  : bool
$isResidentialProxy  : bool
$isTorExitNode  : bool
$networkLastSeen  : string|null
$providerName  : string|null

Methods

jsonSerialize()  : array<string, mixed>

Properties

$confidence read-only

public int|null $confidence

A confidence score from 1-99 indicating our confidence that the IP address is a VPN. Currently, this is either 30 or 99. This attribute is only available from the GeoIP2 Insights web service.

$isAnonymous read-only

public bool $isAnonymous

This is true if the IP address belongs to any sort of anonymous network. This attribute is only available from the GeoIP2 Insights web service.

$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. This attribute is only available from the GeoIP2 Insights web service.

$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). This attribute is only available from the GeoIP2 Insights web service.

$isPublicProxy read-only

public bool $isPublicProxy

This is true if the IP address belongs to a public proxy. This attribute is only available from the GeoIP2 Insights web service.

$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. This attribute is only available from the GeoIP2 Insights web service.

$isTorExitNode read-only

public bool $isTorExitNode

This is true if the IP address is a Tor exit node. This attribute is only available from the GeoIP2 Insights web service.

$networkLastSeen read-only

public string|null $networkLastSeen

The date the anonymizer network was last seen in YYYY-MM-DD format. This attribute is only available from the GeoIP2 Insights web service.

$providerName read-only

public string|null $providerName

The name of the VPN provider, for example, NordVPN or SurfShark. This attribute is only available from the GeoIP2 Insights web service.

Methods

jsonSerialize()

public jsonSerialize() : array<string, mixed>
Return values
array<string, mixed>

        
On this page

Search results