Using Cloudflare to circumvent Ddos attacks

Recently, one of my websites on a shared server was under a very lengthy ddos attack. After some pleading, the hosting company kindly offered to provide a different ip address for my site and within 30 minutes my site was active again. Obviously, I needed to update the DNS setting at my Cloudflare account to reflect the different ip address of my site.

This got me thinking. If I mirror imaged my website to another site on a different hosting company, say, (actually it would be then if I am ever under attack a ddos attack again could I simply dive into the dns settings at Cloudflare and switch them to my backup website?

(I’m a bit new at this, so forgive me if I’ve missed something obvious)

A post was merged into an existing topic: Using Cloudflare to circumvent Ddos attacks