that works but you still have the issue of ddos attacks which use up your bandwidth and make the site so slow it becomes a aggravation to the Normal users.
You need to circumvent the bad guys from attacking your site.
Some tools are robots.txt , htaccess or use cloudflare to name a few.
With ddos I have found they attack in waves.
So you think you have it under control and as soon as you let your guard down they attack again