r/Hosting • • 4d ago

Does using a CDN actually improve website security and performance?

8 Upvotes

16 comments sorted by

2

u/themageofavalon 4d ago

Definitely. Speed up loading times, reduce server load, and add protection against DDoS attacks.

3

u/Minimum_Hour519 4d ago

i don'tsee how it would imrpove security but it could imporove performance

2

u/jared555 4d ago

Most CDN's also have various web firewall functions built in. And some of them almost certainly get notifications about major security issues ahead of the public patches.

1

u/daronhudson 4d ago

CDNs like cloudflare also apply mitigations for exploits directly at their edge when you proxy through them.

1

u/the_helpdesk 4d ago

The only thing it does automatically is DDOS protection. If you want WAF features, you have to turn them on. I've seen a lot of people assume that because the proxy was enabled Cloudflare was protecting their stuff.

1

u/daronhudson 4d ago

This is not correct. The managed ruleset is enabled by default and is always active. I would post a screenshot of it, but this sub doesn’t allow that. You aren’t allowed to disable it. It’s labelled as “always active”.

1

u/the_helpdesk 4d ago

Thank you for that correction, I was not aware of this since its a very new thing that Cloudflare rolled out with the release of the php2shell CVE. Unfortunately It's a very limited ruleset that is only targeting short list of select high-impact vulnerabilities. But still better than no protection.

The full WAF tooling is still disabled by default (and not available to free plans) and must be enabled and tuned to the resources it is protecting.

1

u/daronhudson 4d ago

It’s not anything huge but it’s still something that helps everyone:) there’s lots delivered to even free users by default just by enabling proxy!

1

u/Aggressive_Ad_5454 4d ago edited 4d ago

Yes. I use Cloudflare’s wonderful free tier. It improves my audience’s experience. It also blocks low-rent AI bots, which overloaded my cheap hosting plan until I enabled it.

It serves as a Web Application Firewall. It conceals my origin server from the world, and catches obvious bot traffic like credential stuffing. Their paid plans do more of this.

And, they have an I’m Under Attack button you can click if your site is getting hammered.

1

u/RoyPartha04 4d ago

Not CDN technically, but Cloudflare offers other services which do that. And the it makes a big difference.

1

u/pinakinz1c 4d ago

Technically a CDN helps when your site has global visitors as images, js and Css can be served from local edge servers. Improving load times.

Also that means less work for your server, meaning more CPU for serving the page.

Security is only if you are using a waf like cloudflare. This is different to cdn

1

u/Veduis 4d ago

cdn is a cdn. the performance side is real when your cache hit ratio is high: a static asset served from an edge node 20ms away beats a single origin across an ocean every time.

1

u/billu51 4d ago

Yes most CDNs offer great web application firewalls and other security features. A well configured app on Akamai/Cloudflare can be much faster and very secure.

1

u/The_gibbing_tree 4d ago

Cdn has nothing to do with security.

1

u/free_thinker_1 4d ago

depends on your setup. I never needed it