# _Io_Ban

Server-side only. Ip ban and prevent incomming connections from a given ip.

_Io_Ban($socketOrIp, $nTime = 3600, $sReason = "Banned", $sIssuedBy = "system")

## Return Value

None

## Remarks

$nTime is seconds. Default is therefore 1 hour. A banned client will receive the `banned` event when trying to connect. If you close the server. All bans will persist when you start it up again.

## Related

_Io_getBanlist, _Io_Sanction, _Io_IsBanned