| Server IP : 164.138.27.172 / Your IP : 216.73.216.143 Web Server : nginx/1.27.4 System : Linux cookingdream 6.8.0-124-generic #124-Ubuntu SMP PREEMPT_DYNAMIC Tue May 26 13:00:45 UTC 2026 x86_64 User : www-adm ( 1001) PHP Version : 8.3.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /home/jonasn/.cpan/build/Geo-IP-1.51-0/example/ |
Upload File : |
#!/usr/local/bin/perl
use strict;
use warnings;
use Geo::IP;
my $gi = Geo::IP->open(
"/usr/local/share/GeoIP/GeoIPNetSpeed.dat",
GEOIP_STANDARD
);
my $netspeed = $gi->id_by_name("24.24.24.24");
if ( $netspeed == GEOIP_UNKNOWN_SPEED ) {
print "Unknown\n";
}
elsif ( $netspeed == GEOIP_DIALUP_SPEED ) {
print "Dialup\n";
}
elsif ( $netspeed == GEOIP_CABLEDSL_SPEED ) {
print "Cable/DSL\n";
}
elsif ( $netspeed == GEOIP_CORPORATE_SPEED ) {
print "Corporate\n";
}