http://iphub.info/api.php?showtype=4&ip=8.8.8.8
CountryBlock [Replaced]
Discussion in 'Plugin Support' started by Wulf, Oct 30, 2014.
-
Wulf Community Admin
-
-
Wulf Community Admin
-
Is this correct? We list the countries we "dont" want to join ??
We dont list our whitelist correct ? -
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 }
Code:{ "hostname": "[removed]", "countryCode": "US", "countryName": "United States", "region": "undefined", "asn": "AS7922 Comcast Cable Communications, Inc.", "proxy": 0 }
Code:"proxy": 0
Plus as I already said here,
Attached Files:
-
-
Wulf Community Admin
-
-
Wulf Community Admin
-
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.
-
Wulf Community Admin
-
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? -
Wulf Community Admin
-
cool
thanks a lot
-
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
-
After the game updates, Fail to get the country. help
Attached Files:
-
-
Wulf Community Admin
-
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 -
Wulf Community Admin
-
-
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 ?