When someone tries to download a file, I want to check something before he can download it. (assuming he has the direct download link)
How can I do that?
In php I found something that when you go to the download link, it runs a code and then download will start.