Skip to content
/SLASHPLAY

How to log bans on an L4D2 server

Add sv_logbans 1 to left4dead2/cfg/server.cfg and turn logging on with log on; bans then show in the server log.

sv_logbans

Writes bans into the server log. Off by default.

sv_logbans <0|1>

Examples

sv_logbans 1

Log bans.

Values

ValueWhat it does
0Default Off
1 On

Arguments

0|1Required
1 logs bans.

What it does

Useful when you want a record of who was banned and when.

Good to know

  • Typed in the Console tab it lasts until the server restarts. To keep it, add sv_logbans 1 to left4dead2/cfg/server.cfg, which the server runs at every map load.

Run it on your server

On a SLASHPLAY server, type it in the Console tab of the server page; the reply shows right under it. A value set there lasts until the server restarts. To keep it, add the line to left4dead2/cfg/server.cfg. New to this? Start a L4D2 server first.

Your own
L4D2 server.

From $0.03 an hour, only while it runs. New accounts get 6 free tokens.