TsgcWebSocketFirewallProperties › Enabled

Enabled Property

Master on/off switch for the whole firewall; when False every check is bypassed and all connections/messages are allowed.

Syntax

property Enabled: Boolean read FEnabled write FEnabled default True;

Default Value

True

Remarks

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.

Example


sgcWebSocketFirewall1.Enabled := True;
sgcWebSocketHTTPServer1.Firewall := sgcWebSocketFirewall1;

Back to Properties