CloudFlare only for security
I want to use CloudFlare to secure my AWS Amplify web app. I still want to use Cloudfronts (AWS) CDN. How can I disable CloudFlares CDN while still having 100% of the security (DDoS and so on...)
4 Replies
You can't. The requests need to pass through Cloudflare for the features like DDoS and WAF to work
You can always disable certain features of the CDN that you don't want
But I mean I already use CloudFronts CDN. Is there a way to disable caching, so it will always access the files through CloudFront?
I don't see why you would want to do that, but yes that's possible using Cloudflare Cache Rules
https://developers.cloudflare.com/cache/how-to/cache-rules/
Cloudflare Docs
Cache Rules | Cloudflare Cache (CDN) docs
Use Cache Rules to customize cache settings on Cloudflare. Cache Rules allows you to make adjustments to what is eligible to cache, how long it should be cached and where, as well as trigger specific interactions with Cloudflare’s cache and other Rules products for matching requests.
Thanks a lot! The thing is I'm already paying for CloudFront for my web app to get distributed. I only need security features of CloudFlare.
After looking more at CloudFlare I've decided to just use CloudFront pages and not AWS. But still, thanks for helping.