I have case where I want to make it impossible for the users to access file directly (http://www.mydomain.com/members/file.pdf), but want to allow downloading this file only if link is displayed on Drupal page, that user has privilege to see.
I know it can be easily done if those files are outside webroot and defined as private filesystem.
But is there any alternative solution, Apache way, php/Drupal way to achieve this for files that are not in private filesystem?
Those member files are of various extensions, so I could not just disallow by extension.
I have asked simmilar question before, but as I understood, proposed hook_file_download
way works only for private file system setup.