TABI CLOUD
TF2

How to Ban Players on a TF2 Server: banid, banned_user.cfg and SourceMod

5 min read · Updated October 2026 · By Tabi Cloud

There are two layers for bans on a TF2 server: the built-in engine commands, and SourceMod, which adds a friendlier system. Understanding both keeps your bans from disappearing.

Built-in bans

The engine can ban by SteamID or IP. The banid command takes a time in minutes, with 0 meaning permanent, followed by the user ID or SteamID. The command writeid saves the SteamID list to banned_user.cfg, and writeip saves IPs to banned_ip.cfg. Because these lists are only loaded if you tell the server, add exec banned_user.cfg and exec banned_ip.cfg to server.cfg so they apply after a restart.

Check the list file names in your tf/cfg folder in the Files tab.

SourceMod bans

If SourceMod is installed, admins with the right flags can use:

Use the admin menu from sm_admin if you prefer menus. SourceMod keeps its ban list in its own storage, so it is separate from banned_user.cfg.

Tips

  1. Ban by SteamID rather than IP, since IPs are shared and change.
  2. Always give a reason so other admins understand later.
  3. Use timed bans for first offenses and permanent ones for cheating.
  4. Keep a note of who issued which ban.
  5. Back up your ban files and configs before server changes.

Problems

Shared bans

Some communities use external SourceMod ban systems that share a list between servers. These need extra plugins and a database, so read their documentation first.

Ask us on Discord if you want help choosing a setup that suits your community size.

Want your own server? Join our Discord and tell us the game. We set it up and send you the details. Need help with an error from this guide? Open a ticket there.

GET STARTED ON DISCORD

More guides

TF2How to set up a Team Fortress 2 server (SourceMod, maps and fixes)TF2How to Install SourceMod and MetaMod on a TF2 ServerTF2TF2 Admin Setup: admins_simple.ini and SourceMod Flags