All Projects → ThaDafinser → Piwik Intranetgeoip

ThaDafinser / Piwik Intranetgeoip

Licence: mit
Piwik plugin to locate all locale data of a user based on the IP address/subnetwork (country, region, city, latitude, longitude, provider, ...)

Labels

Projects that are alternatives of or similar to Piwik Intranetgeoip

geoip
🌚 🌍 🌝 GeoIP 规则文件加强版,同时支持定制 V2Ray dat 格式路由规则文件 geoip.dat 和 MaxMind mmdb 格式文件 Country.mmdb。Enhanced edition of GeoIP files for V2Ray, Xray-core, Trojan-Go, Clash and Leaf, with replaced CN IPv4 CIDR available from ipip.net, appended CIDR lists and more.
Stars: ✭ 524 (+2395.24%)
Mutual labels:  geoip
Echoip
IP address lookup service
Stars: ✭ 3,274 (+15490.48%)
Mutual labels:  geoip
Mmdb china ip list
Geoip MaxMind Database for china ip list! This is also an example of generating MaxMind Database!
Stars: ✭ 424 (+1919.05%)
Mutual labels:  geoip
nginx-log-analyzer
A lightweight (simplistic) log analyzer for Nginx.
Stars: ✭ 17 (-19.05%)
Mutual labels:  geoip
lua-resty-maxminddb
A Lua library for reading MaxMind's Geolocation database
Stars: ✭ 72 (+242.86%)
Mutual labels:  geoip
Fccurrentlocationgeocoder
iOS Geocoder for forward geocode and reverse geocode user's current location using a block-based syntax. 📍🌍
Stars: ✭ 268 (+1176.19%)
Mutual labels:  geoip
MaxMind-DB-Writer-perl
Create MaxMind DB database files
Stars: ✭ 63 (+200%)
Mutual labels:  geoip
Telize
High performance JSON IP and GeoIP REST API (IP Geolocation)
Stars: ✭ 774 (+3585.71%)
Mutual labels:  geoip
geoip2-rs
Fast GeoIP2 Reader for Rust
Stars: ✭ 25 (+19.05%)
Mutual labels:  geoip
Maxminddb Golang
MaxMind DB Reader for Go
Stars: ✭ 319 (+1419.05%)
Mutual labels:  geoip
ipapi-retrofit
Android Library for Calling IP-API using Retrofit
Stars: ✭ 47 (+123.81%)
Mutual labels:  geoip
MaxMind-DB-Reader-ruby
Ruby reader for the MaxMind DB Database Format
Stars: ✭ 35 (+66.67%)
Mutual labels:  geoip
Crips
IP Tools To quickly get information about IP Address's, Web Pages and DNS records.
Stars: ✭ 272 (+1195.24%)
Mutual labels:  geoip
express-ip
An Express Middleware for getting IP information
Stars: ✭ 28 (+33.33%)
Mutual labels:  geoip
Nginx Autoinstall
Compile Nginx from source with custom modules on Debian and Ubuntu
Stars: ✭ 443 (+2009.52%)
Mutual labels:  geoip
sawmill
Sawmill is a JSON transformation Java library
Stars: ✭ 92 (+338.1%)
Mutual labels:  geoip
Beeping
HTTP Monitoring via API - Measure the performance of your servers
Stars: ✭ 267 (+1171.43%)
Mutual labels:  geoip
Sypex geo
Sypex Geo IP database adapter for Ruby.
Stars: ✭ 10 (-52.38%)
Mutual labels:  geoip
Nali
An offline tool for querying IP geographic information and CDN provider.一个查询IP地理信息和CDN服务提供商的离线终端工具.
Stars: ✭ 535 (+2447.62%)
Mutual labels:  geoip
V2ray Rules Dat
🦄 🎃 👻 V2Ray 路由规则文件加强版,可代替 V2Ray 官方 geoip.dat 和 geosite.dat,兼容 Shadowsocks-windows、Xray-core、Trojan-Go 和 leaf。Enhanced edition of V2Ray rules dat files, compatible with Xray-core, Shadowsocks-windows, Trojan-Go and leaf.
Stars: ✭ 6,550 (+31090.48%)
Mutual labels:  geoip

Piwik IntranetGeoIp Plugin

Description

Piwik plugin to locate all locale data of a user based on the IP address/subnetwork (country, region, city, latitude, longitude, provider, ...)

Please use it only for INTRANET tracking everything else just dont make sense :-)

FAQ

What does this plugin do?

It adds visitor information based on the matched IP address from your configuration. Not more and not less. The database schema and UI stays untouched, so all Piwik statistics can be used like you would use a internet GeoIP database.

How to configure/install this plugin / the networks?

After installation and activation of the plugin, open the file piwik/config/IntranetGeoIP.data.php

You can their add your location information and their subnetworks.

See the file piwik/config/IntranetGeoIP.data.php or see the readme on github https://github.com/ThaDafinser/IntranetGeoIp

What statistics are available?

If you create a full configuration data file, you'll see

  • Visitor -> Realtime visitor map
  • Visitor -> Location and provider
  • and many more...(in generall all statistics are available like using a internet GeoIP database)

Why there stands provider "unknown" in my visitor log?

If your installation is stock, all visitors will get this "flag" to show you, what IPs are not matched. You can adjust or remove this, by changing the "noMatch" block in your IntranetGeoIP.data.php file. If you remove the complete block, none matched visitors will be skipped by this plugin. But you can also fill all possible visitorInfos like you are used for matched IP addresses.

Can i use this plugin with a internet GeoIP database side by side?

Yes you can. Just remove or comment out the noMatch block in your configuration file.

Note about the configuration?

Inside the array key visitorInfo you can freely add/remove all available columns from the log_visit table you want. The keys below are just a suggestion, since they are the only one which make sense currently IMO. All available fields, see here: http://developer.piwik.org/guides/persistence-and-the-mysql-backend#visits

Inside they key networks add all subnetworks which apply to this location.

return [
    /*
     * If the IP was not matched, apply these data to visitorInfo
     * You can also apply here all possible visitorInformation data if you want
     */
    'noMatch' => [
        'visitorInfo' => [
            // Provider requires the "Provider" Plugin to be active. (Disabled by default in Version 2.15 and above)
            //'location_provider' => 'unknown'
        ]
    ],
    
    [
        'visitorInfo' => [
            //ISO-3166 alpha-2 code http://en.wikipedia.org/wiki/ISO_3166-1
            'location_country' => 'at',
            
            //the region code (i take them from piwik/libs/MaxMindGeoIp/geoipregionvars.php
            'location_region' => '08',
            
            //should be freetext
            'location_city' => 'Muntlix',
            
            //get this from a picker, e.g. http://www.tytai.com/gmap/
            'location_latitude' => '47.282024',
            'location_longitude' => '9.662304',
            
            //enter your company name or do it based on your domain hierarchy
            // Provider requires the "Provider" Plugin to be active. (Disabled by default in Version 2.15 and above)
            //'location_provider' => 'myCompany'
        ],
        'networks' => [
            //enter here all subnetworks for this location
            //use a subnetwork calculator, e.g. http://jodies.de/ipcalc
            '10.59.0.0/19',
            '170.56.251.200/29'
        ]
    ],
    
    //add more blocks live above
];
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].