Every CS:GO server comes equipped with a built-in banning system that allows you to prevent unwanted players from connecting and playing on your server. Of course, you can also unban a player that you previously banned if you would like them to be able to play again.
GETTING A USER's ID
Before you can ban a user, it is important to know what their User ID is. To find it you can use the status
command.
After running the command, you will want to locate the user you wish to ban. The data is displayed in the following format: # [user_id] [number] “[user_name]” [steam_id]
BANNING A PLAYER OR IP ADDRESS
There are different commands that you may use to ban a player from your server.
Command | Description |
banid [Minutes] [User ID]
Example: |
Bans a user based on their SteamID or Player ID. Minutes: the number of minutes the ban should be, if set to 0, the ban will be permanent. User ID: The ID of the user that should be banned. |
banip [Minutes] [User IP]
Example: |
Bans a user based on their IP. Minutes: the number of minutes the ban should be, if set to 0, the ban will be permanent. User IP: The IP of the user that should be banned. |
UNBANNING A PLAYER OR IP ADDRESS
Unbanning a player works in a similar manner. The following commands can be used to unban a player from your server.
Command | Description |
removeid [User ID]
Example: |
Unbans a user based on their SteamID or Ban ID. User ID: The ID of the user that should be unbanned. |
removeip [User IP]
Example: |
Unbans a user based on their IP. User IP: The IP of the user that should be unbanned. |
VIEWING BANNED PLAYERS OR IP ADDRESSES
Command | Description |
listid
Example: |
Lists the users in the "banlist". User ID: The ID of the user that should be unbanned. |
listip
Example: |
Lists the IP’s in the "banlist". User IP: The IP of the user that should be unbanned. |