Four Methods of Whitelisting Players
There may be situations where you want to restrict access only to pre-approved players on your server. Thankfully a variety of whitelisting techniques are possible with Auth Redux, all of which are quite straightforward:
Option 1: Just add the authentication ruleset below to the greenlist.txt file.
Code: Select all
try "You are not permitted to join this server. Please contact $owner if you believe this to be an error."
when $name eq $owner pass
until $name in @whitelist.txt fail
Then put a list of player names (one per line) into the file
filters/whitelist.txt. You can edit the list while the server is online.
Option 2: If you would prefer to whitelist by IP address rather than player name, you can do that too! Just change the last rule:
Code: Select all
until ip($addr) in @whitelist.txt fail
Option 3: If you simply want to block new players from joining your server, but continue to allow existing players, use this rule instead:
Option 4: It might be easiest to simply register a new privilege such as "login". Then grant that privilege only to players that are allowed access (this assumes they already have an account on your server, of course). With this ruleset, you don't have to maintain a separate whitelist at all, just use the builtin /grant and /revoke commands!
Code: Select all
try "Sorry, your privileges are insufficient to join this server."
until "login" in $privs_list fail
Hope this helps!