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

Bans an address, rejecting all connections with it&period;

== Synopsis

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

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

== Parameters

[cols="1,4"]
|===
| Name| Description
| *net&lowbar;addr*
| The address 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]#
