Resource icon

GeoIP 2.2

No permission to download
Fougerite Compatibility
All Versions
Plugin's Engine
C# (Modules)
Description:

This plugin is able to provide local information of the given IP address on a local database, making It safer/faster for anyone.

Server owners just have to install this plugin as a C# plugin only.

Plugin Devs:

Python Example:

Python:
__author__ = 'DreTaX'
__version__ = '1.0'

import clr
clr.AddReferenceByPartialName("Fougerite")
import Fougerite

try:
    clr.AddReferenceByPartialName("GeoIP")
    import GeoIP
    from GeoIP import GeoIP as RealGeoIP
except:
    raise ImportError("Failed to reference the GeoIP.dll")

geo = RealGeoIP.Instance


class Test2:

    def On_PluginInit(self):
        IPData = geo.GetDataOfIP("0.0.0.0")
        if IPData is None:
            Server.Broadcast("FAILED")
            return
        Plugin.Log("Data", IPData.Country)


JavaScript:

Soon...

Lua:

Soon...

API:

Methods:

C#:
GetDataOfIP(string ip):IPData
Variables:

IPData class
C#:
Instance:GeoIP
// IPData Class Variables, returned by GetDataOfIp
CityData:GCityData
IPRange:string
CountryCode:string
RegisteredCountryCode:string
IsAnonymousProxy:bool
IsSatelliteProvider:bool
IPLocationData:IPLocationData // It stores the country and continents below, It's just there, no need to use It.
Country:string
CountryShort:string
Continent:string
ContinentShort:string
StoredIP:string // Gives back the IP you are checking
GCityData class
C#:
GeoID:string
CountryGeoID:string
AnonymousProxy:bool
SatelliteProvider:bool
Latitude:string
Longitude:string
Country:string
CountryShort:string
Continent:string
ContinentShort:string
Author
DreTaX
Downloads
241
Views
241
First release
Last update
Rating
5.00 star(s) 2 ratings

More resources from DreTaX

Latest updates

  1. 2.2

    Wrong link, same update.
  2. 2.2

    I forgot to update GeoIP after the website problem before. Here is the newest one with threaded...
  3. 2.0

    Completely updated GeoIP, added Sqlite DB to It which is on your own local server and uses it to...

Latest reviews

Excellent Database! Saves doing web requests!
DreTaX
DreTaX
Thanks!
Amazing.. :)
DreTaX
DreTaX
Thanks!