1. Wulf

    Wulf Community Admin

    http://iphub.info/api.php?showtype=4&ip=8.8.8.8
     
  2. Wulf

    Wulf Community Admin

    They have VPN lists, the end variable is what mentions what it is. It's not perfect, but the best one I've found so far that is free.
     
  3. Havent you added your intended whitelist to the blocklist??
    Is this correct? We list the countries we "dont" want to join ??
    We dont list our whitelist correct ?
     
  4. That's not accurate.

    VPN result:
    Code:
    {
      "hostname": "203.139.154.177.static.sp2.alog.com.br",
      "countryCode": "BR",
      "countryName": "Brazil",
      "region": "undefined",
      "asn": "AS16397 SOLUCOES DE TECNOLOGIA EM INFORMATICA S.A.",
      "proxy": 0
    }
    ISP result:
    Code:
    {
      "hostname": "[removed]",
      "countryCode": "US",
      "countryName": "United States",
      "region": "undefined",
      "asn": "AS7922 Comcast Cable Communications, Inc.",
      "proxy": 0
    }
    Both report,
    Code:
    "proxy": 0
    This proves my point: IPHub - IP lookup with Proxy/VPN detection (+API) It says "probably home internet" It also shows that for the 3 other VPN POP servers I connected to in different countries, as well as my non-vpn connection from my ISP. Basically - you can't detect VPN access very well using this service.

    Plus as I already said here,
     

    Attached Files:

  5. Wulf

    Wulf Community Admin

    I never said it was accurate, I said it provided a list and that it was the best I knew of.
     
  6. Still buggy. People from the US, Russia and Sweden can join my server, but that should not happen! My config is quoted, I use whitelist only.
     
  7. Wulf

    Wulf Community Admin

    If the sites are reporting them as that country, there isn't anything I can really do. It's not an issue with the plugin if it is detected them wrongly.
     
  8. This is the us man for a few minutes ago:
    Code:
    (22:20:23) | 71.228.2xx.109:63334/765xxx76/=OG=Titan joined [windows/76x76]
    (22:20:23) | [Oxide] 10:20 PM [Info] [CountryBlock] Getting country for 71.228.2xx.109 failed! (0)
    (22:20:24) | [Oxide] 10:20 PM [Info] [Notifier v2.18.0] =OG=Titan joined the server, from United States.
    Why can notifier detect from where he joined and countryblock not? the old version (0.4.2 or so) could do this. I'm confussed
     
  9. Wulf

    Wulf Community Admin

    When it fails, it lets them in. Notifier doesn't use the same sites as far as I know. It's a hit or miss with any site API. The old version worked the same way, but it used less sites.
     
  10. thanks for your response, wulf.
    So it's bad luck das the around 10 guys could join. well, is there a way to add more sites for checks or anotherway for geotracking?
     
  11. Wulf

    Wulf Community Admin

    I'll be working on it soon to hopefully fix the issues with the checking.
     
  12. cool :) thanks a lot
     
  13. I did remove all but ip-api.com. Seems to be pretty accurate, almost no "Unkown" countries and has a limit of 150 requests/minute. Way more I actually need :)
     
  14. After the game updates, Fail to get the country. help
     

    Attached Files:

  15. Wulf

    Wulf Community Admin

    Game updates do not affect the checking, it's one of the API sites failing in the plugin. You can edit it and remove one at a time and see if it helps.
     
  16. hmm...
    modify the URL and code to 76 and subsequent rows?

    List of 20+ Domain & IP API Tools - Mashape Blog

    Code:
                   var providers = new[]
                {
                    $"http://ip-api.com/line/{ip}?fields=countryCode",
                    $"http://api.hostip.info/country.php?ip={ip}",
                    $"http://geoip.nekudo.com/api/{ip}",
                    $"http://ipinfo.io/{ip}/country",
                    $"http://iphub.info/api.php?showtype=4&ip={ip}"
                    $"http://ip-json.rhcloud.com/json/{ip}",
                    $"https://api.ipify.org/?format=json",
                    $"https://ip.nf/{ip}.json"
                 
                };
                var url = providers[new Random().Next(providers.Length)];
                webrequest.EnqueueGet(url, (code, response) =>
                {
                    if (code != 200 || response == null || response == "undefined" || response == "xx")
                    {
                        Puts($"Getting country for {ip} failed! ({code})");
                        return;
                    }                string country;
                    try
                    {
                        var json = JObject.Parse(response);
                        country = (string) json["country"]["code"]["country_code"];
    
     
    Last edited by a moderator: Mar 5, 2016
  17. Wulf

    Wulf Community Admin

    Yup, you can test a few manually or remove them and see. I'll be moving to something more reliable in the future likely.
     
  18. always thankful for the help.
     
  19. something is rong ppl from Russian are still joining on my server even when the country is blocked :s
    do thay use a ip changer or is it the plugin ?