Protection against DoS and DDoS attacks