internal void FlowAnalyser(string source) { if (_isDisabled) { return; } var nf = NetworkStatistics.Find(n => n.Src == source); if (nf == null) { NetworkStatistics.Add(new NetworkFlow(source)); } else { if (nf.Repeat == 0) { nf.Cooldown(); } nf.Repeat++; if (nf.Repeat <= 10) { return; } _isDisabled = WafServer.IncursionSetup(source, _incursionStrength); } }
internal void DangerZone(string source) { _isDisabled = WafServer.IncursionSetup(source, _incursionStrength); }