I'm trying to determine the best way to handle a few issues I've come up with on handling images for my site.
Background: A small site that houses movie information. I have an admin section to upload multiple movies images per movie.
Image files would be hosted on a CDN so access would pretty much be open. References to each image will be stored in the database.
I would like to: 1) Make sure I can prevent hot-linking as much as possible 2) Have the filename some what obfuscated to prevent a scraper from just increment an id parameter in the URL.
So far, I'm using a random string generator to come up with the image names which I believe takes care of #2.
Looking for an answer to #1 and also any advice and best practices.