DDoS Countermeasures In general, there are three lines of defense against DDoS attacks: Attack prevention and preemption (before the attack)