TsgcWebSocketFirewall › Properties › Enabled
Master on/off switch for the whole firewall; when False every check is bypassed and all connections/messages are allowed.
property Enabled: Boolean read FEnabled write FEnabled default True;
True
Controls whether the firewall performs any filtering. When True, the firewall enforces every sub-module whose own Enabled flag is set (Blacklist, Whitelist, BruteForce, SQLInjection, XSS, PathTraversal, CommandInjection, PayloadLimit, RateLimit, FloodProtection, GeoIP, ThreatScore, BanEscalation, WebSocketProtection and CustomRules). When False, all checks short-circuit and every connection and message is allowed through, which is useful for temporarily disabling protection without dismounting the component from the server.
sgcWebSocketFirewall1.Enabled := True;
sgcWebSocketHTTPServer1.Firewall := sgcWebSocketFirewall1;