Preventing direct download in wordpress websites

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

Leave a Reply

Your email address will not be published. Required fields are marked *