Addip: Difference between revisions
Jump to navigation
Jump to search
Note:The maximum number of IP address filter entries is 32768. Attempting to add additional filter entries will result in an error.
Note:If
(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...") |
m (Changed parameters of {{this is a}} to comply with the updated version. This action was performed by a bot.) |
||
(6 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
{{this is a|console command|name=addip}} | |||
{{note|The maximum number of IP address filter entries is 32768. Attempting to add | It adds the specified IP address to the IP address filter list. It is totally identical to the '''<code>banip</code>''' 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 '''<code>server_addban</code>''' is fired. The entries are stored in the '''<code>cfg/banned_ip.cfg</code>''' file. | ||
{{note|The maximum number of IP address filter entries is 32768. Attempting to add additional filter entries will result in an error.}} | |||
{{Syntax|}} | |||
<pre>addip <minutes> <ipaddress></pre> | <pre>addip <minutes> <ipaddress></pre> | ||
{{note|If '''<code>minutes</code>''' is 0, then the ban is permanent.}} | {{note|If '''<code>minutes</code>''' is 0, then the ban is permanent.}} | ||
==See | ==See also== | ||
*{{ent|sv_filterban}}, a console variable that sets packet filtering by IP mode. | *{{ent|sv_filterban}}, a console variable that sets packet filtering by IP mode. | ||
*{{ent|removeip}}, a console command that removes an IP address filter entry. | *{{ent|removeip}}, a console command that removes an IP address filter entry. | ||
*{{ent|listip}}, a console command that lists all IP address filter entries. | *{{ent|listip}}, a console command that lists all IP address filter entries. | ||
*{{ent|writeip}}, a console command that saves all IP address filter entries to disk. | *{{ent|writeip}}, a console command that saves all IP address filter entries to disk. | ||
Latest revision as of 19:49, 17 May 2024
addip
is a console command available in all Source games.
It 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.

Syntax:
addip <minutes> <ipaddress>

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.