Hello guys , ive read alot about two things in particular , DDos attack and libwperl as problems when it comes to website security.

In the case of libwperl they say you can simply stop most attacks by blocking user agent string in the ht access file with the rout of your server .

DDos however the only thing ve have really seen is people recommending a cloudflare server as these provide those and additional security benefits to your website.

I however am not a fan of running my website on content delivery networks .

Any other ways to improve online security from DDos ?