# Squad Ban Players & Ban Lists (/docs/squad/ban-players)



Squad supports one-off bans (in-game or RCON), a persistent local ban file, and subscribing to community-shared ban lists.

Ban In-Game or via RCON [#ban-in-game-or-via-rcon]

The fastest way — with the `ban` [access level](/docs/squad/admin-permissions):

```
AdminBan <NameOrSteamId> <BanLength> <BanReason>
AdminBanById <PlayerId> <BanLength> <BanReason>
```

**Ban length** format: `0` = permanent, `1d` = 1 day, `1M` = 1 month, `1h` = 1 hour, etc.

```
AdminBan Hodor 1M Attacking main base
AdminBanById 75 0 Cheating
```

Use `ListPlayers` (a [public command](/docs/squad/public-commands)) to get `<PlayerId>` values. See all commands in [Admin & RCON Commands](/docs/squad/admin-console-commands).

The Local Ban File — Bans.cfg [#the-local-ban-file--banscfg]

Bans are written to `SquadGame/ServerConfig/Bans.cfg`. Each line records a banned SteamID and expiry. You can edit this file directly to review or lift bans:

* Remove a line to **unban** that player.
* The file is empty on a fresh server.

> Stop the server before hand-editing `Bans.cfg`, then restart (or reload config over RCON).

Shared Ban Lists — RemoteBanListHosts.cfg [#shared-ban-lists--remotebanlisthostscfg]

`RemoteBanListHosts.cfg` lets your server subscribe to **remote ban lists** — community-maintained lists of known cheaters/griefers. Each line is a URL the server fetches bans from on startup.

```
https://example-community.com/squad/bans.cfg
```

This is how large communities and networks share bans. Only subscribe to lists you trust — a remote list can ban players from your server.

> `RemoteAdminListHosts.cfg` works the same way for remotely-hosted admin lists.

Applying Changes [#applying-changes]

Restart the server after editing any of these files for the changes to take effect. (In-game/RCON `AdminBan` commands apply immediately.)

Related Guides [#related-guides]

* [Admin & RCON Commands](/docs/squad/admin-console-commands)
* [Admin Permissions & Groups](/docs/squad/admin-permissions)
* [RCON](/docs/squad/rcon)
