Bans - WelcomeWinters/gershwin GitHub Wiki
Bans
Tinyboard currently accepts three forms of bans:
- IP address (βstaticβ) bans
- Range/wildcard bans
- CIDR netmask bans
Static bans apply to a single IP addess, such as β127.0.0.1β and β::1β for IPv6.
IP range bans allow the use of the asterisk character (*
) as a wildcard. For example, β127.0.0.β or just β127.0.β would match β127.0.0.1β. To use this, $config['ban_range']
must be enabled.
$config['ban_range'] = true;
With CDIR netmask bans, β10.0.0.0/8β would match β10.0.0.0 - 10.255.255.255β for example. Due to MySQL limitations, this is currently an IPv4-only feature. To use this, $config['ban_cdir']
must be enabled.
$config['ban_cidr'] = true;