> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.sparkedhost.com/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# How To Ban Someone From Terraria Server

Banning someone from your Terraria server helps keep the gameplay fair and enjoyable for everyone. Whether you're dealing with griefers, hackers, or just enforcing server rules, Terraria gives you a few simple ways to issue bans—either by IP, user ID, or directly through server tools like TShock.

In this guide, we'll show you how to ban someone from Terraria server so you can keep your server safe, and also know how to ban or unban players from your server at time.  

## Banning A Player From Your Terraria Server (Vanilla)

* Open your [Apollo Panel](https://control.sparkedhost.us/)

* In your console, type the following command `ban <playername>`

  ![](https://images.surferseo.art/d30de088-00de-4789-a871-16441b252bdf.png)

||| Please note that the player must be online during this process.

## Banning A Player Using TShock

To **permanently** ban a player from your server:

* In your in-game chat, type `/ban add <name> <reason>` as shown in the example below

  ![](https://images.surferseo.art/025ecbbc-2c1f-4906-92e3-4e5f94437a53.png)

To temporarily ban a player from your server:

* In your in-game chat, type `/ban addtemp <playername> <time> <reason>`

  ![](https://images.surferseo.art/046d9bab-e9d1-40df-983c-b550fc95fc5d.png)

You can use this time as a reference for future use.

* s – seconds (30s)

* m – minutes (10m)

* h – hours (2h)

* d – days (1d)

### IP Banning A Player 

To **IP ban** a player from your server:

* In your in-game chat type, `/ban addip <IP Address>`

## Unbanning A Player From Your Terraria Server (Vanilla)

* Open your Apollo Panel [here](https://control.sparkedhost.us/)

* Head over to the **Files** tab

* Find the `banlist.txt` file

  ![](https://images.surferseo.art/95f2caca-0396-4631-aba7-9a5698dceaf1.png)

* Delete the banned player's IP address, and click on **Save Content**

## Unbanning A Player Using TShock

To unban players on your TShock server:

* In your in-game chat, type `/ban del <username>`

  ![](https://images.surferseo.art/9c8b72d1-4d60-42a0-ad1f-9ad21f75cd55.png)

### Unbanning A Player's IP 

To unban a player's IP address on your Tshock server:

* In your in-game chat, type `/ban delip <IP Address>`

## Still have some questions about banning or unbanning a player from a Terraria server?

If you need any further instructions, you can log a ticket [here](https://billing.sparkedhost.com/submitticket.php)