---
title: "How To Ban/Unban Players From Your Terraria Server"
description: "Ban and Unban players from your terraria server - Vanilla/tModLoader/TShock"
url: https://help.chiphead.tech/en/articles/167-how-to-banunban-players-from-your-terraria-server
collection: "Terraria"
updated: 2026-06-13
language: en
---

# How To Ban/Unban Players From Your Terraria Server

Ban and Unban players from your terraria server - Vanilla/tModLoader/TShock

## Summary

If a player is disrupting gameplay, cheating, or breaking your server’s rules, you may need to ban them to maintain a fair and enjoyable environment. Likewise, if someone was banned by mistake or has served a temporary ban, you can unban them easily.

## Banning Players on a Vanilla/tModLoader Terraria Server

Banning via **Game config:**

1.  Log in to your Control Panel.
    
    ![](https://staticfiles.gleap.io/gattachments/Tshd8NMK3OuU8H7amlGoaPBLIOKIQ6JHAC9kMe5S1iT8ZixaS1G6Rnaz4R2OSWQdNCQaDLfxX5V.png)
    
2.  Navigate to **Game Config > Ban List**.
    
    ![](https://staticfiles.gleap.io/gattachments/bLNYOQjdRmPsuw1VXUYvkW4R6sMz6UZdE92eRJSTM5iZO3VQdG775ARAB7EN74Nr8tyEHzQYcPi.png)
    
3.  Inside the Ban List, enter the “playername” and “playerIP” as shown.
    
    ![](https://staticfiles.gleap.io/gattachments/4BKb1fYHi7Ip2VDz7yuhHs68PVR0KFeDdSNjWhUx17cZhIoEg1RVtYDW7R6KU8YTmSb8SRdS73M.png)
    
4.  Click **Save** to save your new ban/s.
    

> **Info:** This can also be done via **Files** \> **banlist.txt**

> **Error:** Your new ban/s will now be saved. However, this does not immediately ban the player/s if in-game. They will have to log-out first for the command to take action.
>
> The easiest and most immediate way to ban is via the **Console,** read on to learn more.

Banning Via the **Console**:

1.  Log in to your Control Panel.
    
    ![](https://staticfiles.gleap.io/gattachments/ziH22mfmGODime8GSqv0SOEl1Ac1KbtXmE64cPBqqnfxceO72KJNtlLVEe2AOnrkQ7EY3M6U732.png)
    
2.  Navigate to the **Console.**
    
    ![](https://staticfiles.gleap.io/gattachments/WTIxtdrtrkzZqzXuGbQevnJNSIof0gXXzR9OokXHXROQ7ykfUOG3jeaIK7UZpt99yVrspFHFlk6.png)
    
3.  In the text box below the console log, type the following command:
    
    1.  Replace <playername> with the player’s in-game name:
        
        ```javascript
        ban playername
        ```
        
        ![](https://staticfiles.gleap.io/gattachments/wSVvlCnsejNaXdnKM1JqMD5Qjw0CvJNkReMDigMeUxHcTZQw10TcIEfK2A4eVirlcmM0vxTuDcc.png)
        

> **Error:** Note: If banning via the console, players must be online at the time you issue the ban command for it to work properly. Once banned, they won’t be able to connect to your server using any character.

## Banning Players on a TShock Terraria Server

TShock servers offer more advanced options, including temporary and permanent bans.

> **Error:** Before you start, make sure your account has the tshock.admin.ban permission.
>
> Check out our guide on [Adding an Admin User On Your tShock Terraria Server](https://help.chiphead.tech/en/articles/171-adding-an-admin-user-on-your-tshock-terraria-server.md).

To issue a **permanent** ban:

1.  Log into your server and open the in-game chat (press / by default).
    
2.  Type one of the following commands:
    

-   This bans a player by their username and includes a reason:
    
    ```javascript
    /ban add <username> <reason>
    ```
    
    > **Info:** The <reason> is optional.
    
-   This bans a player by their IP address instead:
    
    ```javascript
    /ban addip <IP Address>
    ```
    

To issue a **temporary** ban:

1.  Log into your server and open the in-game chat.
    
2.  Use this command format:
    
    ```javascript
    /ban addtemp <username> <time> <reason>
    ```
    
    -   Replace the placeholders with the correct name, time duration, and reason for the ban.
        

## Unbanning Players on a Vanilla/tModLoader Terraria Server

1.  Log into your Control Panel.
    
    ![](https://staticfiles.gleap.io/gattachments/NSVCSwdoGGPdv7xYF3bvleUEdUY5mlUD68rfB2TLXy5E3mtKcZ7ulCPDnsXcO9jCzfKldPb0oa5.png)
    
2.  Navigate to **Game Config > Ban List**.
    
    ![](https://staticfiles.gleap.io/gattachments/pzZxNyPzkU8UVAckFLugiDPOsrGlgNcNm6T4ZTlQ4dGSXc32lLPzAMja62w3T0WkiJE9kywpcR1.png)
    
3.  Each banned player will appear twice — once with their username and once with their IP address.
    
4.  Delete both lines for the player you want to unban, then click **Save**.The player/s will be able to re-join your server immediately.
    

## Unbanning Players on a TShock Terraria Server

## To unban by username:

1.  Log into your server and open the in-game chat.
    
2.  Type:
    
    ```javascript
    /ban del <username>
    ```
    

## To unban by IP:

1.  Log into your server and open the in-game chat.
    
2.  Type:
    
    ```javascript
    /ban delip <IP Address>
    ```
    

> **Success:** After using these commands, the player will be removed from the ban list and can connect again.

## View Ban List of Players on a TShock Terraria Server

1.  Log into your server and open the in-game chat.
    
2.  Type:
    
    ```javascript
    /ban list
    ```
    

> **Info:** Tip: use **/help** to view list of available commands in-game.
