I have a more general question. Is it possible to allow direct (url) access to files only for registered users?
Say we have an intranet site only for registered users. And they can upload their profile image. Would it be possible to block access to this image for public visitors? When images are load to the image folder of Joomla they are always reachable through the direct URL right?
I know there are 3-party component that use a folder with a htaccess protection (deny all) and the only give access through a PHP loading script. But I was wondering if it is somehow possible to protect for example:
images/foto/myfoto.jpg
When someone uses this URL and is not registered I would like them to be redirected to the login page. But logged in users (and the joomla template) can access the file directly.
Any tips and thought on this? Is this possible?
Thanks!