How to ban an IP address in Half-Life 2: Deathmatch
Type addip 0 203.0.113.7 in the Console tab, 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 IP ban.
addip 30 203.0.113.7 Thirty minute IP ban.
Arguments
minutesRequired- Ban length in minutes, 0 for permanent.
ipRequired- The IP address, as shown by status.
What it does
The engine prefers addip over the older banip, which does the same. Save permanent IP bans with writeip.
Good to know
writeipsaves permanent IP bans tohl2mp/cfg/banned_ip.cfg, which SLASHPLAY keeps between runs.
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 hl2mp/cfg/server.cfg. New to this? Start a HL2DM server first.
Your own
HL2DM server.
From $0.03 an hour, only while it runs. New accounts get 6 free tokens.