I have an application server, a database server and a file server, with the file server has its own subdomain name (i.e., file.myexample.com
)
The file server stores all the images that are used in the application, the point is that I don't want the user to view those images without obtaining proper authentication first. So in a sense the access of these image resources must be properly authenticated, which means that only login users can access those images. If a anonymous user types in the URL of an image, the web application should direct him to the login page.
I am looking for PHP and Symfony examples.