RangeBans

RangeBans - Ban IP Ranges;
Version: v1.03

This plugin was mainly made for offline-mode servers, where you cant really deal with dynamic IPs users.


Features:

  • Ban IP Ranges, hostnames
  • Except nicknames from these bans or use them as whitelist
  • Support for 'wildcards' (ex. 192.168.*.*, 90.120.128-192.*)
  • Permissions

Download RangeBans for 1.2.x!
Source and progress

Installation, Configuration:

All you need is just to simply grab .jar file into /plugins folder.
Additionally, u can set some values via config file (generated automatically):

  • broadcast-kicks: (true/false) Broadcast a message to operators player with banned IP range tries to join the server
  • broadcast-passes: (true/false) Broadcast a message to operators when player passes range ban due to an nickname exception
  • ban-msg: Message to show to banned player, supports colorizing
  • use-hostnames-as-whitelist: (true/false) Should plugin use hostname bans as whitelist?

    Bans and exceptions are stored in .txt files.

Commands, screenshots:
http://indiamonds.pl/commands.png
http://indiamonds.pl/ban.png
http://indiamonds.pl/bankick.png

How to check somebody's IP range?
https://apps.db.ripe.net/search/query.html
For example, for inetnum: 192.168.128.0 - 192.168.192.255,
correct command would be: /rb ban 192.168.128-192.*
or simply /rb ban 192.168.128.0 - 192.168.192.255

Permissions:

  • rb.* - full access
  • rb.reload - reload the plugin
  • rb.ban - ban and unban both IP Ranges and hostnames
  • rb.exception - add/remove exceptions
  • rb.check - check somebody's IP
  • rb.list - list bans/exceptions
  • rb.broadcast - receives message when a player is found on bans/exceptions list

Version 1.03

  • Hostname bans are now optional - no more freezes on playerjoin

Version 1.02

  • Performance tweaks

Version 1.01

  • Fixes critical bug with wrong IP parsing

Version 1.0

  • Permissions!
  • Feature to ban hostnames (ex. countries, providers - easier)
  • Added config option to use hostname bans as whitelist (ex. only whitelisted countries can join)
  • Updated to 1.1-R3, still compatible backwards
  • General code tweaks

You must login to post a comment. Don't have an account? Register to get one!

  • Avatar of Chalkie19 Chalkie19 Feb 14, 2013 at 15:55 UTC - 0 likes

    Seems to be lagging the server a little.

    RangeBans v1.03 Total: 3.71 s	Pct: 0.69%
    	 Pct Total	Pct Tick	     Total	     Avg	    Count	Event
    	     0.69%	 212.00%	   3.710 s	106.0017 ms	    0.04k	PlayerLoginEvent
    

    Compared to my other 40+ plugins <1%

    http://tyzoid.koding.com/mcb/image.php?ip=play.tagcraftmc.com&port=25565&theme=banner1&ontext=TagCraftMC%20-%20play.tagcraftmc.com&offtext=TagCraftMC%20-%20play.tagcraftmc.com

  • Avatar of KoBrA1135 KoBrA1135 Feb 03, 2013 at 07:07 UTC - 0 likes

    Then do it! <3

    It works right now still but some errors when using few 2-3 commands

  • Avatar of joehot200 joehot200 Jan 31, 2013 at 20:15 UTC - 0 likes

    @KoBrA1135: Go

    dosent matter, it still works.

    If this ever stops working, I may continue it, because I badly need it.


    Bored :D

  • Avatar of KoBrA1135 KoBrA1135 Dec 14, 2012 at 16:08 UTC - 0 likes

    Hey Any future updates on RangeBans?

  • Avatar of joehot200 joehot200 Sep 13, 2012 at 22:05 UTC - 0 likes

    @Hans6666: Go

    if you use /rb ban USA of course they can still get on. it bans ip's and hostnanames, just putting USA wont work.

  • Avatar of Typhome Typhome Jul 20, 2012 at 16:13 UTC - 0 likes

    Please update to 1.2.5 R4.0, thanks!

  • Avatar of IRaptorZz IRaptorZz May 23, 2012 at 00:31 UTC - 0 likes

    How about a command that ban's a hostname by the person's name? maybe /rb banuserhost (username)

  • Avatar of Hans6666 Hans6666 May 13, 2012 at 16:32 UTC - 0 likes

    please help!

  • Avatar of Hans6666 Hans6666 May 11, 2012 at 19:59 UTC - 0 likes

    hmmmmm ban host doesnt work..i banned "US", "USA","1" and "us"
    but users from united states can still join...do i have to reload or something?

    :(

    edit: in config:
    enable-hostname-bans:
    true so normally it should work?!

    Last edited May 11, 2012 by Hans6666
  • Avatar of hoppsan4 hoppsan4 May 11, 2012 at 08:29 UTC - 0 likes

    <<reply 698957="">>

    Yeah it is. Some dude did this to me too. Every time he logged on his IP changed the two last numbers. /rb ban 192.168. * . * will ban the last two numbers no matter what they are I guess. worked fine for me. I run both UltraBans and RangeBans together.

    <<reply 699126="">>

    I think it's /rb banhost <country code=""> for example "/rb banhost jp" to ban japan. Correct me if I'm wrong :) Full list of countries are here: http://countrycode.org/

    Last edited May 11, 2012 by hoppsan4

Facts

Date created
Dec 31, 2011
Categories
Last update
May 07, 2012
Development stage
Release
Language
  • enUS
License
GNU General Public License version 3 (GPLv3)
Curse link
RangeBans
Downloads
103,189
Recent files

Authors