Prevent direct access to files

[ad_1]

Hello fellow wordpressers,

we have a form that uploads sensible PDFs into a custom folder into wp-content/uploads/custom-folder.

What would be the best way to prevent direct access to this files? So that only a certain user role can access it?

I tried a few plugins but most of them come with way to much overhead or they just generally block access to files in uploads.

Thanks in advance!

[ad_2]
4 Comments
  1. Access from where? What’s the purpose of the files? Who needs access to them? (Frontend/backend)

  2. You need a pro membership 🙂 there are plenty of them free or paid. Just Go google and look all functionnalities before choosing one. More it’s easy to set, more it’s expensive. Keep that in mind 😂

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer