Results 1 to 10 of 33

Thread: [advanced] Find player's country-of-origin

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Corporal voron00's Avatar
    Join Date
    Nov 2014
    Posts
    248
    Thanks
    64
    Thanked 216 Times in 116 Posts
    Maybe someone will be intersted: just for lulz built a little C geolocation app to use with execute() (since the way with Perl was not fast enough)
    its an implentation of https://github.com/maxmind/geoip-api-c (had to do make some changes to compile it on linux)

    Just put the GeoLityCity.dat http://dev.maxmind.com/geoip/legacy/geolite/ where the app is and use it something like like:
    PHP Code:
    result execute("cd /home/voron/GeoIP && ./geoiplookup -f GeoLiteCity.dat -l " self GetIP()); 
    The returned result (ip 8.8.8.8):
    Spoiler:
    Click image for larger version. 

Name:	shot0000.jpg 
Views:	142 
Size:	33.7 KB 
ID:	1048


    You can split it using strtok or edit the source for your printing pleasure, well, you know the drill.
    App:
    geoiplookup.zip

    Source:
    geoiplookup_source.zip
    Last edited by voron00; 30th March 2016 at 04:48.
    sudo apt-get rekt

  2. The Following 3 Users Say Thank You to voron00 For This Useful Post:

    kung foo man (30th March 2016),thOuMta (30th March 2016),YuriJurek (30th March 2016)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •