Addip

From Valve Developer Community
Revision as of 05:44, 31 July 2021 by Ugnyteaa (talk | contribs) (Created page with "'''<code>addip</code>''' is a console command that adds the specified IP address to the IP address filter list. It is totally identical to the '''<code>banip</code>''' console...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

addip is a console command that adds the specified IP address to the IP address filter list. It is totally identical to the banip console command, but using it is not advised due to duplication. If the addition to the IP address filter list is successful, then a game event by the name server_addban is fired. The entries are stored in the cfg/banned_ip.cfg file.

Note.png Note: The maximum number of IP address filter entries is 32768. Attempting to add new filter entries will result in an error.

Syntax

addip <minutes> <ipaddress>
Note.png Note: If minutes is 0, then the ban is permanent.

See Also

  • sv_filterban, a console variable that sets packet filtering by IP mode.
  • removeip, a console command that removes an IP address filter entry.
  • listip, a console command that lists all IP address filter entries.
  • writeip, a console command that saves all IP address filter entries to disk.