Newer use Wordpress plugins to protect from DDoS. Protection must be applied on the lowest networking layer, not on the 7 layer of OSI model.
The best solution is change IP and use CloudFlare, it will be enough. If it's kiddy DDoS also firewall could help (iptables, ufw, netfilter).