Flood protection with factory defaults: 5 lines per 2 s window, 512 bytes max, 5 s penalty.
<.flood_protection_dialog
id="flood-protection"
settings={%{max_lines: 5, interval_ms: 2000, max_bytes: 512, penalty_ms: 5000}}
on_save="flood_save"
on_reset="flood_reset"
on_cancel="flood_cancel"
/>
Tighter limits: 3 lines per 1 s, 256 bytes, 10 s penalty — suitable for high-traffic channels.
Relaxed limits: 20 lines per 5 s, 2048 bytes, 1 s penalty — for trusted environments.