DDoS stand for Distributed Denial of Service attack where attackers send so many requests to the server to overload the server so that server gets slow or crash down. As per sucuri WordPress is the main target for a hacker because it is the most popular CMS with more than 35% share of the CMS market.
There are many ways to secure your website from a DDoS attack one of them is Cloudflare CDN. Cloudflare has its solution using Cloudflare you can hide your IP address. Cloudflare will not show your actual IP that makes it difficult to attack your website.
Image Credit-: Cloudflare.com
Another tool is to secure your website from a DDoS attack is the Jetpack Plugin which blocks the suspicious IP. On the jetpack setting page, you can allow your IP so that it should not block your IP. Cloudflare and jetpack are the best combinations to secure your website from a DDoS attack.