> ## 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 Valheim Server

Keeping your Valheim server running smoothly sometimes means making tough calls—like banning a player who's causing trouble. If someone's griefing, cheating, or just not respecting your rules, you don’t have to put up with it. Valheim gives you full control, and banning someone is quick once you know how. You’ll just need their SteamID, a couple commands, and you’re set.

In this guide, we'll show you how to ban someone from Valheim server by using the Steam ID and the in-game console.

## Banning Players From Your Valheim Server 

|| NOTE: You must have admin permissions to use the following method. You can check out our guide on How To Add Admin To Valheim Server for more information. 

To ban a player on your Valheim server: 

* Join the game

* Open your console by pressing F5

* Type `ban <SteamID>`

* For example, to ban the Steam ID (9487389789478421), type the following command `ban 9487389789478421` and hit enter. You find a player's Steam ID [here](https://steamid.io/)

  ![](https://images.surferseo.art/7387178d-ec9b-479e-80e6-c3f80ca28271.png)

* You can also use the server files to ban a player

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

* Head over to the **Files** tab, and open the following directory `/home/container/.config/unity3d/IronGate/Valheim`

* Open the **bannedlist.txt** folder

* In a new line, type the user's Steam ID

  ![](https://images.surferseo.art/876fb4d3-1eb0-4f0e-bd27-2788525a9133.png)

* Click on **Save**, and restart your server 

## Unbanning Banned Users From Your Valheim Server 

To unban players on your Valheim server: 

* Open the console using F5

* Type `unban <SteamID>`

* For example, to unban the Steam ID (9487389789478421) type, `unban 9487389789478421` and press enter

  ![](https://images.surferseo.art/815a8ab3-3ffa-4d1f-b2a2-815ad786ef5a.png)

## Kicking A Player From Your Valheim Server

To kick a player from your Valheim server: 

* Open the console using F5

* Type `kick <SteamID>`

* For example, to kick the Steam ID (9487389789478421) type, `kick 9487389789478421` and press enter

  ![](https://images.surferseo.art/d07a5dd3-a034-481f-aab6-85dccc0f6238.png)

## Still have some questions about banning someone from a Valheim server? 

Don't hesitate to contact our support team! We're available 24/7 to assist! 

By: Ali A. 