Use my own IP Table for GeoIP...Possible?

2004-09-29
2012-10-11
  • Our sites are within a Virtual Private Network and therefore GeoIP is not able to give us accurate stats based on the ip schemas in the .dat file i believe it refrences. Our network admin has a table of ip address ranges per office and i was wondering is there a way to edit a .dat file or somehow replace it with a .csv file or txt file?
    Has anyone done anything like this?

     
    • There is no easy way to achieve this. In order to do this you will need to partially change the code of awstats and definitely change the code of geoip. Have

      The point is that your intranet IP-adresses (most likely) will be from IP blocks that are defined as private (http://www.ripe.net/db/rfc1918.html) and this will cause some problems with GeoIP. Anyhow, you might want to have a look at the Geo subdirectory in your plugins directory. In there you will find some conversion tools. On top of that you might want to have a look at: http://ip-to-country.webhosting.info/
      This portal offers a wealth of information on GeoIP topics.

      Best regards,

      tfranzke

       
    • So then basically Awstats is not intended to be used in a corporate enviroment? Sinc emost corporations buy a range of IP addresses and distribute them across the globe therefore any outside refrences such as the ones listed wont help at all. Perhap someone else can help me or has accomplished this?

       
      • You can't say that. But regarding GeoIP you might have a problem realizing what you intended to do. Anyhow, it should be possible by using a customized pre-compiled DNS-file and by using "address" resolution.
        I will get back to you later, when I am in my office again and when I do have the files and stuff available.

        Best regards,

        tfranzke