How do I prevent direct file download
I provide file downloads on my site and I want users to register before they can download. My user account system is php based. What do I need to do that when a user gets to a link like http://mysite/file.rar there is no file download prompt, but instead there is a page saying something like "thank you for downloading the file" or if the user is not logged in it would redirect him to the login page.Basically I need to know how to make it so that when a user is linked to a link such as http://mysite/file.rar, a page shows up instead of a direct download.