Websites hosted on DigitalOcean droplets can benefit from Cloudflare's free content delivery network.

Cloudflare caches your web pages and static assets, and since web requests are all routed through their network, your web server is not vulnerable to denial of service attacks.

Once your Cloudflare setup is complete, the last step is to use a DigitalOcean Cloud Firewall with Cloudflare's IP address ranges.

The firewall prevents attackers from bypassing Cloudflare by finding your web server's IP address and sending requests directly.

Unfortunately there isn't an instant way to create a firewall with all of these addresses, so you will have to copy/paste them individually.