GeoIP2...mousIP(3pm)

πŸ“¦
version 2.006002 Β· 6 versions
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– GeoIP2::Model::AnonymousIP β€” a whole vibe πŸ’–

okay so bestie, you found it β€” this is the manual page for GeoIP2...mousIP(3pm), aka the GeoIP2::Model::AnonymousIP situation. It's the model class for the GeoIP2 Anonymous IP database. Sit down, hydrate, let's go ✨


✨ VERSION ✨

version 2.006002 β€” that's the one, that's the era we're in πŸŽ€


🌸 SYNOPSIS 🌸

Here's the whole flex, verbatim, no cap:

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";

like, it's giving "make an object, print a boolean, move on" πŸ’…


πŸ¦‹ DESCRIPTION πŸ¦‹

This class provides a model for the data returned by the GeoIP2 Anonymous IP database. That's literally its whole job and it does it beautifully. It's the little wrapper that makes the raw data cute and accessible 🫢


πŸ’œ METHODS πŸ’œ

This class provides the following methods β€” a whole roster of baddies:

$anon->is_anonymous()

Returns true if the IP address belongs to any sort of anonymous network. That's the big-picture yes/no πŸ”₯

$anon->is_anonymous_vpn()

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

okay important detail, don't skip this: 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. So like, iykyk β€” sometimes the VPN flag just isn't the one that catches it, and the hosting provider flag is doing the heavy lifting instead 🧚

$anon->is_hosting_provider()

Returns true if the IP address belongs to a hosting or VPN provider β€” see the description of the is_anonymous_vpn attribute above for the whole tea β˜•

$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. very main character energy, very anonymous πŸ§…

$anon->ip_address()

Returns the IP address used in the lookup. Just the actual address, being itself πŸ’–


πŸŽ€ SUPPORT πŸŽ€

Bugs may be submitted through <https://github.com/maxmind/GeoIP2-perl/issues>. if you found a bug, that's not a you problem, that's a them problem, and the link is right there bestie πŸ›


πŸ‘‘ AUTHORS πŸ‘‘

The legends responsible, in order:

  • Dave Rolsky <drolsky@maxmind.com>
  • Greg Oschwald <goschwald@maxmind.com>
  • Mark Fowler <mfowler@maxmind.com>
  • Olaf Alders <oalders@maxmind.com>

four icons, one module 🌈


This software is copyright (c) 2013 - 2019 by MaxMind, Inc.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. free as in freedom, slay ⭐


no cap on the license: it's genuinely free software under the same terms as Perl 5 itself β€” redistribute it, modify it, do your thing, just keep those terms intact πŸŽ€

and that's the whole page, bestie!! you read all of it, I'm so proud πŸ₯Ή

cute little sign-off, as promised: this page was generated by perl v5.36.0, dated 2022-11-21, and it lives under the manual name GeoIP2...mousIP(3pm). periodt. πŸ’–βœ¨

πŸ“¦ where this page comes from