There are a few ways to prevent DDoS attacks on PlayStation 4. One way is to use a security software such as Bitdefender or Norton Internet Security. Another way is to use a firewall to protect your PS4 from being attacked.