Skip to content
/SLASHPLAY

How to ban an IP address in L4D2

Type addip 0 203.0.113.7 in the Console tab of the server page for a permanent IP ban, then writeip to save it.

addip

Bans an IP address for a number of minutes, 0 for permanent.

addip <minutes> <ip>

Examples

addip 0 203.0.113.7

Permanent ban on one address.

addip 1440 203.0.113.7

One day.

Arguments

minutesRequired
Ban length in minutes, 0 for permanent.
ipRequired
The IP address to ban.

What it does

Use it when a player keeps coming back on new accounts from the same address.

Good to know

  • Run writeip afterwards to save permanent IP bans to left4dead2/cfg/banned_ip.cfg, which SLASHPLAY keeps with every save.

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.