[#BanMan-Ban-0d]
= xref:BanMan.adoc[BanMan]::Ban
:relfileprefix: ../
:mrdocs:

Bans a subnet, rejecting all connections within its range&period;

== Synopsis

Declared in `&lt;banman&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;requires&lowbar;capability(0x7f2e3ae947c8)&rsqb;&rsqb;
void
Ban(
    xref:CSubNet.adoc[CSubNet] const& sub&lowbar;net,
    int64&lowbar;t ban&lowbar;time&lowbar;offset = 0,
    bool since&lowbar;unix&lowbar;epoch = false);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *sub&lowbar;net*
| The subnet to ban&period;
| *ban&lowbar;time&lowbar;offset*
| Ban duration offset in seconds&semi; 0 uses the default&period;
| *since&lowbar;unix&lowbar;epoch*
| If true, ban&lowbar;time&lowbar;offset is an absolute unix timestamp&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
