Jump to content
Sign in to follow this  

IP-Based Blacklist

Recommended Posts

File Name: IP-Based Blacklist

File Submitter: Major Zhuinden

File Submitted: 10 Jul 2010

File Category: 1.16.1

Author: Salvinger

Version: 1.0.0

 

Blacklists people based on their IP, also you can specify a reason for the blacklist in case you forget why someone was blacklisted. I contemplated adding a way to blacklist a name too, but decided against it because spoofing is so easy and I did not want to add extra parsing for usernames.

 

In the lobby you'll notice people will have a "# - " in front of there name. That makes it easier to ban a person based on their slot #. The host will appear in white, and blacklisted people (when autoban is off) will appear in red.

 

Ini file right now only contains one item which is whether autoban is on or not, it is default to on.

 

IP's are recorded in the same file as the blacklist dll , so if you want to blacklist somebody and you forgot the name/ip you can check in that file, though you will have to manually edit the blacklist file (banlist.txt) and reload it to take effect.

 

The format of the banlist is simple, "ip.ip.ip.ip reasonhere", so it is wise to enter the blacklist command as "/blacklist namehere reasonhere" and the reason's format should be "name-reason", as the BanList.txt stores only the IP and the Reason. Be sure you don't accidently mess up the format though because if one line contains an incorrect format, the rest of the file after that will be ignored.

 

Commands are:

/blacklist name reason (Looks up a person's ip based on the name, not case sensitive, also a reason can be provided if wanted)

 

/blacklistslot slotnumber reason (Looks up a person's ip based on their slot id, most effective in lobby when slot numbers are displayed, also a reason can be provided)

 

/reloadlist (Reloads blacklist from the banlist file)

 

/autoban (Toggles autobanning of a blacklisted person, if off a blacklsited person's name will appear red in the lobby)

 

Click here to download this file

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×