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:



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
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
- R: RangeBans v1.03 for CB 1.2.5-R1.2 May 07, 2012
- R: RangeBans v1.02 for CB 1.1-R3 Feb 19, 2012
- R: RangeBans v1.01 for CB 1.1-R3 Feb 13, 2012
- B: RangeBans v1.0 for CB 1.1-R3 Feb 10, 2012
- B: RangeBans v0.93 for CB 1.0.1-R1 Jan 12, 2012
- Reply
- #37
Chalkie19 Feb 14, 2013 at 15:55 UTC - 0 likesSeems to be lagging the server a little.
Compared to my other 40+ plugins <1%
- Reply
- #36
KoBrA1135 Feb 03, 2013 at 07:07 UTC - 0 likesThen do it! <3
It works right now still but some errors when using few 2-3 commands
- Reply
- #35
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
- Reply
- #34
KoBrA1135 Dec 14, 2012 at 16:08 UTC - 0 likesHey Any future updates on RangeBans?
- Reply
- #33
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.
- Reply
- #32
Typhome Jul 20, 2012 at 16:13 UTC - 0 likesPlease update to 1.2.5 R4.0, thanks!
- Reply
- #31
IRaptorZz May 23, 2012 at 00:31 UTC - 0 likesHow about a command that ban's a hostname by the person's name? maybe /rb banuserhost (username)
- Reply
- #30
Hans6666 May 13, 2012 at 16:32 UTC - 0 likesplease help!
- Reply
- #29
Hans6666 May 11, 2012 at 19:59 UTC - 0 likeshmmmmm 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?!
- Reply
- #28
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/