Preventing Amazon Cloudfront hotlinking
I use Amazon Cloudfront to host all my site's images and videos, to serve them faster to my users which are pretty scattered across the globe. I also apply pretty aggressive forward caching to the elements hosted on Cloudfront, setting Cache-Control to public, max-age=7776000 . I've recently discovered to my annoyance that third party sites are hotlinking to my Cloudfront server to display images on their own pages, without authorization. I've configured .htaccess to prevent hotlinking on my own server, but haven't found a way of doing this on Cloudfront, which doesn't seem to support the