Summary
In Left 4 Dead 2, the kick and ban system is a feature used by server administrators to manage player behavior and maintain a positive gaming environment. Players can be kicked from a server if they are causing disruptions or violating server rules, and this is typically a temporary removal. Server admins also have the option to ban players, which permanently prohibits them from rejoining the server, serving as a more severe consequence for repeated rule violations or disruptive behavior. This system helps maintain fair and enjoyable gameplay for the community and ensures that server rules are enforced.
How to Kick or Ban Players on a Left 4 Dead 2 Server
1. Log in to the BisectHosting Games panel.
2. Stop the server.
![](https://bisecthosting.com/images/uploads/kb/af63293d-ee3c-469d-8c4c-8ea6ea09b996-50.webp)
3. Go to the Files tab.
![](https://bisecthosting.com/images/uploads/kb/b24e130a-4892-42f1-a922-b72fd50d0f0e-50.webp)
4. Find the following directory: /home/container/left4dead2/cfg
.
![](https://bisecthosting.com/images/uploads/kb/d89c6511-7c8f-4404-8c14-55e62fe08636-50.webp)
5. Open the server.cfg file. If not present, click Create and choose Create File.
![](https://bisecthosting.com/images/uploads/kb/7bbb40f5-77b0-4d10-8167-635a4b7d61dc-50.webp)
![](https://bisecthosting.com/images/uploads/kb/bbd52ed8-0ba3-48a2-8db8-5a618baee73f-50.webp)
6. Enter the following separated by a new line: exec banned_user.cfg
, exec banned_ip.cfg
, writeid
, and writeip
.
![](https://bisecthosting.com/images/uploads/kb/Left-4-Dead-2/f12b47e9-5780-4e62-8b5b-b00dc66d5e1d-50.webp)
Note |
Follow the order of the commands to avoid resetting the list. |
7. Press the Save Content button.
![](https://bisecthosting.com/images/uploads/kb/31088f7f-4f88-4a4b-9ed2-543734687426-50.webp)
8. If server.cfg was not present, click Create File to name the file server.cfg
.
![](https://bisecthosting.com/images/uploads/kb/Gameservers/a4d93d0a-e053-4f69-a534-0c50410a4915-50.webp)
![](https://bisecthosting.com/images/uploads/kb/Left-4-Dead-2/9e6ec5d4-5e77-49dc-a55f-0d4004b7c2a9-50.webp)
9. Start the server.
![](https://bisecthosting.com/images/uploads/kb/90fedc9f-6cbc-4fad-b33d-bf0c86f2ed92-50.webp)
10. Go to the Console tab.
![](https://bisecthosting.com/images/uploads/kb/03cf6168-1e87-489f-a565-1ab855e2ae1a-50.webp)
11. Enter the desired kick or ban command.
![](https://bisecthosting.com/images/uploads/kb/Left-4-Dead-2/ec82c11b-a89b-4817-8e59-39d1d223db70-50.webp)
Command |
Description |
Example |
status |
Displays server information for players currently connected like the player's name and userid. |
status |
kick PlayerName |
Kicks a player by their name from the server. |
kick Gen |
kickid PlayerID Message |
Kicks a player by their userid from the server with an optional message. |
kickid 2 You have intentionally killed a teammate |
addip BanMinutes PlayerIP |
Bans an IP from connecting to the server for a desired amount of minutes. Use 0 for a permanent ban. |
addip 60 104.12.123.456 |
listip |
Lists the currently banned IP addresses of the server. |
listip |
removeip listID |
Removes a banned IP address from the ban list of the server. Typically used after the listip command. |
removeip 1 |
writeip |
Writes the command in a local file to save in the server memory even after a server reset. Typically used after the command; separated by a semi-colon. |
addip 0 104.12.123.456;writeip |
Note |
Restarting the server resets the server memory for bans. Ensure to use the writeip command to save the ban permanently. |
![](https://www.bisecthosting.com/images/kb/CTA/LEFT4DEAD2.webp)