I want to store media files used on a website on a different server, but make sure only viewers on the main site can download them.
An idea that occured to me is to generate temporary symlinks to the files in the files URLs, and delete them after a timeout, and perhaps link them to a cookie as well.
Are the some standard techniques used for this? I want to do as little coding as possible. Something build directly into the web server will be better.