WP uploads images/media files onto a directory that is accessible to the public (eg. mysite.com/wp-content/uploads). I’m trying to keep these media directories private so that it’s only accessible by the admin. Otherwise, anyone can just go straight to the directory and download everything if they so desire.
What I need is what other sites have when I try to access their directories (eg. “Forbidden. You don’t have permission to access /samplepath/ on this server.” Is there a way to do this? Seems like a fairly basic, commonly-needed function but I can’t seem to find an answer to it.
FYI, I’ve already read through this:
but it doesn’t address security for wp-content.
This thread refers to the same problem, but there is no resultion yet:
Can anyone help? Thanks!
- The topic ‘How to protect media directory or make it private’ is closed to new replies.