Exemplo n.º 1
0
        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);
            }
        }
Exemplo n.º 2
0
 internal void DangerZone(string source)
 {
     _isDisabled = WafServer.IncursionSetup(source, _incursionStrength);
 }