Moodle PHP Documentation 5.0
Moodle 5.0.1+ (Build: 20250711) (61af040cd5f)
GeoIp2\Model\AnonymousIp Class Reference
Inheritance diagram for GeoIp2\Model\AnonymousIp:

Public Member Functions

 __construct (array $raw)
 @ignore
 
 jsonSerialize ()
 

Public Attributes

string readonly string $ipAddress
 the IP address that the data in the model is for
 
bool readonly bool $isAnonymous
 this is true if the IP address belongs to any sort of anonymous network
 
bool readonly bool $isAnonymousVpn
 This is true if the IP address is registered to an anonymous VPN provider.
 
bool readonly bool $isHostingProvider
 this is true if the IP address belongs to a hosting or VPN provider (see description of isAnonymousVpn property)
 
bool readonly bool $isPublicProxy
 this is true if the IP address belongs to a public proxy
 
bool readonly bool $isResidentialProxy
 this is true if the IP address is on a suspected anonymizing network and belongs to a residential ISP
 
bool readonly bool $isTorExitNode
 this is true if the IP address is a Tor exit node
 
string readonly string $network
 The network in CIDR notation associated with the record.
 

Constructor & Destructor Documentation

◆ __construct()

GeoIp2\Model\AnonymousIp::__construct ( array $raw)

@ignore

Parameters
array<string,mixed>$raw

Member Function Documentation

◆ jsonSerialize()

GeoIp2\Model\AnonymousIp::jsonSerialize ( )
Return values
array<string,mixed>|null

Member Data Documentation

◆ $isAnonymousVpn

bool readonly bool GeoIp2\Model\AnonymousIp::$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.

◆ $network

string readonly string GeoIp2\Model\AnonymousIp::$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.


The documentation for this class was generated from the following file: