Skip to content
/SLASHPLAY

How to whitelist IPs on a CS 1.6 server

Type sv_filterban 0 in the server console and only IPs added with addip can join. Add your IPs first or you lock everyone out.

sv_filterban

Decides whether the addip list blocks the listed IPs or is the only IPs allowed to join.

sv_filterban <0|1>

Examples

sv_filterban 1

Normal ban list behavior.

sv_filterban 0

Only IPs on the list may join.

Values

ValueWhat it does
0 IP list is an allow list: only listed IPs can join
1Default IP list is a ban list: listed IPs are blocked

Arguments

0|1Required
1 treats the list as bans, 0 as an allow list.

What it does

With the default of 1, every IP added with addip is banned. Set it to 0 and the list becomes an allow list: only those IPs can connect and everyone else is turned away. Use 0 for a private match server with a fixed set of players, and double check the list before switching or you can lock everyone out.

Good to know

  • Save the IP list with writeip so it is reloaded after a restart.

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 cstrike/server.cfg. New to this? Start a CS 1.6 server first.

Your own
CS 1.6 server.

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