Actually once an attacker knows your website or server IP, cloudflare will be meaningless, as they will direct the attack directly to your web hosting IP, the only way to secure is on the server side, if your server at the hosting or data center level has DDoS protection and firewall solution that can be best, otherwise some security solutions like imunify360 also has some good DDoS mitigation solutions built in them.