Some guys create a CloudFront CDN to proxy my site, so people can access my website using url like df03039lsls933.cloudfront.net
instead of www.example.com
How to block this using nginx?
From CloudFront doc, it said..
Host: CloudFront sets the value to the domain name of the origin that is
associated with the requested object.
So I cannot block by using the host
header, what would be the other approach?
(CloudFront is just an example, I want to block all CDNs with similar approach)