TsgcWebSocketFirewall › Methods › ResetThreatScore
Clears the accumulated threat score for a single IP, giving it a clean slate against AutoBanThreshold without affecting other IPs.
procedure ResetThreatScore(const aIP: string);
| Name | Type | Description |
|---|---|---|
aIP | const string | IPv4 or IPv6 address whose accumulated threat score should be reset to 0. |
Use ResetThreatScore to forgive an IP after a false positive, after a verified legitimate user signed in, or when an operator manually whitelists the address. Active bans are not removed by this method — call UnbanIP for that. Fires OnThreatScoreChanged with the old value and 0 so dashboards and logs can update.
// forgive a trusted corporate proxy that tripped scoring
sgcWebSocketFirewall1.ResetThreatScore('203.0.113.10');