Sliding-window per-IP connection rate limiter that temporarily blocks addresses reconnecting too fast.
CSB Connect Flood Guard keeps a small crowd of scripted reconnects from eating your slots and your tickrate. Every connection is bucketed by IP into a sliding window held in a Trie; an address that opens more than csb_flood_maxconn connections inside csb_flood_window seconds is blocked for csb_flood_bantime seconds. Legitimate players, who reconnect at human speed, never touch the limit.
Features
- Per-IP sliding window (Trie-backed) that resets cleanly once the window elapses.
- Temporary, self-expiring blocks - nothing is written to disk and no permanent bans accumulate.
- Blocked addresses are kicked at connect with a clear reason.
- Every block is logged with the count, window and duration.
Installation
- Compile
csb_connect_flood_guard.smaand copy it toaddons/amxmodx/plugins/. - Add it to
plugins.iniand change the map.
Tune csb_flood_maxconn and csb_flood_window for your traffic; the defaults (5 connects / 10 s) suit most public servers.









