Skip to content
/SLASHPLAY

How to save IP bans in L4D2

Type writeip in the Console tab of the server page after an IP ban; permanent bans go to left4dead2/cfg/banned_ip.cfg.

writeip

Saves the permanent IP bans to banned_ip.cfg.

writeip

Examples

writeip

Save IP bans.

What it does

Without it, IP bans made in the console are gone after a restart.

Good to know

  • SLASHPLAY keeps left4dead2/cfg/banned_ip.cfg with every save. Put exec banned_ip.cfg in server.cfg to load it at each start.

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.