Class representing the model of an "AnonymousIP" response *

Constructors

  • Instantiates an "AnonymousIP" using fields from the response

    Parameters

    • response: AnonymousIPResponse

      The GeoIP2 response

    • Optional ipAddress: string
    • Optional network: string

    Returns AnonymousIP

Properties

ipAddress?: string

The IP address that the data in the model is for. If you performed a "me" lookup against the web service, this will be the externally routable IP address for the system the code is running on. If the system is behind a NAT, this may differ from the IP address locally assigned to it.

isAnonymous: boolean

`true if the IP address belongs to any sort of anonymous network.

isAnonymousVpn: boolean

true if the IP address is registered to an anonymous VPN provider.

isHostingProvider: boolean

true if the IP address belongs to a hosting or VPN provider (see description of isAnonymousVpn property).

isPublicProxy: boolean

true if the IP address belongs to a public proxy.

isResidentialProxy: boolean

true if the IP address is on a suspected anonymizing network and belongs to a residential ISP.

isTorExitNode: boolean

true if IP is a Tor exit node.

network?: string

The network associated with the record. In particular, this is the largest network where all of the fields besides ipAddress have the same value.

Generated using TypeDoc