TsgcWebSocketFirewallMethods › ResetThreatScore

ResetThreatScore Method

Clears the accumulated threat score for a single IP, giving it a clean slate against AutoBanThreshold without affecting other IPs.

Syntax

procedure ResetThreatScore(const aIP: string);

Parameters

NameTypeDescription
aIPconst stringIPv4 or IPv6 address whose accumulated threat score should be reset to 0.

Remarks

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.

Example

// forgive a trusted corporate proxy that tripped scoring
sgcWebSocketFirewall1.ResetThreatScore('203.0.113.10');

Back to Methods