ItsMods

Full Version: [Request] Ban IP address by country range
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

I'm a dedi server admin, and many of my friends complained about people keep cheating in my server. I always do my best to permanently ban them, the list grows longer as day passed by.

I noticed however, most of these cheaters come from two countries nearby, namely China and Indonesia (sorry folks, I try not to generalize).

So, is there any plugin or addon to ban ALL IP address range from these two countries? It would help me a lot.. You know there are over a billion people in China and more than a quarter billion in Indonesia. I really can't do this manually.

Thanks.
[Image: hOGpg.jpg]
This is absolutely not racist, just facts in his situation. Firstly you need to check where the ip comes from.

A external program that does something like: http://www.ip-adress.com/ip_tracer/ and kicks the player if he comes from a certain country. This isn't possible with a plugin only but deffinately possible with an external program. Maybe could @JariZ add this as a feature in his playermanager .
GeoIP C# API, gogogo (we only need GeoIP Country btw, not that other stuff). Note that the database included with the source is outdated, you can always get the latest version here.

http://www.maxmind.com/app/csharp

Finding each player's IP is quite easy, that is if you know where to look Wink I might write a plugin for this.

EDIT - Working on it now, it's nearly finished!
If you can get it set up to accept IP bans you can just do a simple subnet ban.

So if say 192.168.1.1 keeps coming in your server but every time he joins his i[ has changed by one number;

EX:192.168.1.2
192.168.1.3

You would ban;

192.168.1.0
(03-17-2012, 00:51)kraze1994 Wrote: [ -> ]If you can get it set up to accept IP bans you can just do a simple subnet ban.

So if say 192.168.1.1 keeps coming in your server but every time he joins his i[ has changed by one number;

EX:192.168.1.2
192.168.1.3

You would ban;

192.168.1.0

Well I just finished the plugin, it only supports countries at the moment, I'll add IP blocking too (with wildcards for subnet bans).

EDIT - All finished, unfortunately, I have to leave home now so I'll have to upload the plugin later Wink
EDIT 2 - Finally posted it, still not at home though. :L http://www.itsmods.com/forum/Thread-Rele...pport.html