GeoIP2::Model::AnonymousIP(3pm)

GeoIP2::Model::AnonymousIP3pm

Model class for the geoip2 anonymous ip database

Usage

  use 5.008;
  use GeoIP2::Model::AnonymousIP;
  my $anon = GeoIP2::Model::AnonymousIP->new(
      raw => {
          is_anonymous        => 1,
          is_hosting_provider => 1,
          ip_address          => '24.24.24.24'
      }
  );
  print $anon->is_anonymous(), "\n";

Version

version 2.006002

Overview

This class provides a model for the data returned by the GeoIP2 Anonymous IP database.

Methods

This class provides the following methods:

$anon->is_anonymous()

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

$anon->is_anonymous_vpn()

Returns 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 "is_hosting_provider" attribute.

$anon->is_hosting_provider()

Returns true if the IP address belongs to a hosting or VPN provider (see description of "is_anonymous_vpn" attribute).

$anon->is_public_proxy()

Returns true if the IP address belongs to a public proxy.

$anon->is_tor_exit_node()

Returns true if the IP address is a Tor exit node.

$anon->ip_address()

Returns the IP address used in the lookup.

Support

Bugs may be submitted through <https://github.com/maxmind/GeoIP2-perl/issues>.

Releases

4 releases since Debian 10 (Buster); the text changed 2 times.

  1. 10
  2. 11
  3. 12–13