PHP: How can I block direct URL access to a file, but still allow it to be downloaded by logged in users? PHP: How can I block direct URL access to a file, but still allow it to be downloaded by logged in users? php php