1. davidzack
  2. Feature ideas for WP Media Folder
  3. Thursday, 28 February 2019
  4.  Subscribe via email
Is there a way to protect uploaded files to prevent direct access? For instance, if I upload PDFs to the media library, I'd like to prevent people from accessing the pdf link directly (http://www.mysite.com/wp-content/uploads/filename.pdf)

In my case, I'd like to restrict access to PDFs to users who are logged in.

Thanks
Responses (1)
Accepted Answer Pending Moderation
Hi,

Thanks for contacting us here about this extension.
Is there a way to protect uploaded files to prevent direct access? For instance, if I upload PDFs to the media library, I'd like to prevent people from accessing the pdf link directly (http://www.mysite.com/wp-content/uploads/filename.pdf)

In my case, I'd like to restrict access to PDFs to users who are logged in.

You should customize or hire a freelancer with your purpose.
For more information: https://hostadvice.com/how-to/how-to-protect-the-wp-content-folder-of-your-wordpress-website/

Hope it helps!
Cheers,
  • Page :
  • 1


There are no replies made for this post yet.
Be one of the first to reply to this post!