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 mywebsite2.com, (actually it would be mywebsite2.netlify.com) then if I am ever under 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)

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 mywebsite2.com, (actually it would be mywebsite2.netlify.com) 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)

This topic was automatically closed after 30 days. New replies are no longer allowed.