MindMax GeoIP Databases

  • wpas
  • Proficient
  • Proficient
  • User avatar
  • Posts: 310
  • Loc: Canada

Post 3+ Months Ago

Hi

Is anyone familiar with using the maxmind GeoIP ISP and GeoIP Org databases.

I am trying to using PHP to extract, based on IP, the Internet Service Provideer, Organization and the city, region and country they are located in.

Thanks
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • Bigwebmaster
  • Site Admin
  • Site Admin
  • User avatar
  • Posts: 9084
  • Loc: Seattle, WA & Phoenix, AZ

Post 3+ Months Ago

We use it here at Ozzu. What sort of problem are you having?
  • wpas
  • Proficient
  • Proficient
  • User avatar
  • Posts: 310
  • Loc: Canada

Post 3+ Months Ago

Hi

I have access to the following databases:
GEOIPISP.dat and GEOIPORG.dat

I use the following:

Code: [ Select ]
<?php
$ip=$_SERVER['REMOTE_ADDR'];
include("geoip.inc");
$giorg = geoip_open("GeoIPOrg.dat",GEOIP_STANDARD);
$org = geoip_org_by_addr($giorg,$ip);
print $org;
echo "<br />";
$giisp = geoip_open("GeoIPISP.dat",GEOIP_STANDARD);  
$isp = geoip_org_by_addr($giisp,$ip); 
print $isp; 
geoip_close($giorg); 
geoip_close($giisp);  
?> 
  1. <?php
  2. $ip=$_SERVER['REMOTE_ADDR'];
  3. include("geoip.inc");
  4. $giorg = geoip_open("GeoIPOrg.dat",GEOIP_STANDARD);
  5. $org = geoip_org_by_addr($giorg,$ip);
  6. print $org;
  7. echo "<br />";
  8. $giisp = geoip_open("GeoIPISP.dat",GEOIP_STANDARD);  
  9. $isp = geoip_org_by_addr($giisp,$ip); 
  10. print $isp; 
  11. geoip_close($giorg); 
  12. geoip_close($giisp);  
  13. ?> 


I can print $org and get result
but print $isp gives no output.

Also, I would like to be able to get ISP city, region and country

Thanks
  • wpas
  • Proficient
  • Proficient
  • User avatar
  • Posts: 310
  • Loc: Canada

Post 3+ Months Ago

I tried various IPs and sometimes I get both Org and ISP but they are both always the same.

Considering the size of the database, I am surprised you do not get very much information on the ISP.

Do I need to use someother way to extract the information

How would I go about getting the IPS city, region and country

Post Information

  • Total Posts in this topic: 4 posts
  • Users browsing this forum: No registered users and 109 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
cron
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.