I have a wordpress website. In the blogs, there can be links to the uploaded files. Currently even if the user is not logged in, he can click the link and download the file. I want to make the user login to the website on clicking the link. Once he logs in he should be able to download the file.

Read more here: Preventing direct download in wordpress websites


If you know the solution of this issue, please leave us a reply in Comment section, to update the question.

Wordpress related questions and answers: