I want to use Cloudfront as a CDN for my CSS, JS, images etc... I've set up a distribution on AWS with an origin domain name as
mywebsite.com. The distribution has an alternate domain name as
cdn.mywebsite.com. If I user accesses
cdn.mywebsite.com they are served the whole website. I don't want this to be possible. My
CNAME is set-up to point to the Cloudfront distribution (i.e.
Is there a way of stopping this behaviour?