Title: [Plugin: Protected Site] Restrict only a single folder?
Last modified: August 20, 2016

---

# [Plugin: Protected Site] Restrict only a single folder?

 *  [mrgad](https://wordpress.org/support/users/mrgad/)
 * (@mrgad)
 * [14 years ago](https://wordpress.org/support/topic/plugin-protected-site-restrict-only-a-single-folder/)
 * My goal is to protect a certain folder within wp-content/uploads, or perhaps 
   the entire wp-content/uploads folder (and all sub-folders within it). Ideally,
   no one could access an uploaded file within this folder unless the user is logged
   in to the site.
 * I like the simplicity of this plugin, and think it could work.
 * Would this be possible? Any suggestions as to how to add a small edit to the 
   beginning of the php file to specify that this plugin should only be used if 
   the URL being targeted is within this folder?
 * [http://wordpress.org/extend/plugins/protected-site/](http://wordpress.org/extend/plugins/protected-site/)

Viewing 1 replies (of 1 total)

 *  [systech](https://wordpress.org/support/users/systech/)
 * (@systech)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-protected-site-restrict-only-a-single-folder/#post-2798723)
 * I need exactly this also!
 * I have some files in the /uploads folder that I need to protect.
 * I’m currently using the members plugin and that does OK for protecting the landing
   page and posts.
 * I tried this /protected-site/ plugin and it also allowed visitors to get to the
   file without being logged in.
 * Can anyone suggest a plugin or code edit to achieve this?
 * 🙂 Thanks!

Viewing 1 replies (of 1 total)

The topic ‘[Plugin: Protected Site] Restrict only a single folder?’ is closed to
new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/protected-site.svg)
 * [Protected Site](https://wordpress.org/plugins/protected-site/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/protected-site/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/protected-site/)
 * [Active Topics](https://wordpress.org/support/plugin/protected-site/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/protected-site/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/protected-site/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [systech](https://wordpress.org/support/users/systech/)
 * Last activity: [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-protected-site-restrict-only-a-single-folder/#post-2798723)
 * Status: not resolved