r/Hosting • u/HotAuthor6438 • 13d ago
Does using a CDN actually improve website security and performance?
3
u/Minimum_Hour519 13d ago
i don'tsee how it would imrpove security but it could imporove performance
2
u/jared555 13d 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 13d ago
CDNs like cloudflare also apply mitigations for exploits directly at their edge when you proxy through them.
1
u/the_helpdesk 13d 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 13d 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 13d 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 13d 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 13d ago edited 13d 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 13d ago
Not CDN technically, but Cloudflare offers other services which do that. And the it makes a big difference.
1
u/pinakinz1c 13d 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
1
2
u/themageofavalon 13d ago
Definitely. Speed up loading times, reduce server load, and add protection against DDoS attacks.