Restrict public access to media files

[ad_1]

Is there a way to prevent visitors from directly accessing my media files via their /wp-content/uploads/ permalink?

ie [https://yourwebsite.com/wp-content/uploads/09/imagefile.jpeg](https://yourwebsite.com/wp-content/uploads/09/imagefile.jpeg)

I’ve tried a multitude of plugins and googling but I have not had any luck.

Thanks.

[ad_2]
2 Comments
  1. Are you wanting visitors to still have access to media within a page but blocked when requested directly?

 

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