Title: uploads accessible without login
Last modified: August 31, 2016

---

# uploads accessible without login

 *  Resolved [pgb](https://wordpress.org/support/users/pgb/)
 * (@pgb)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/uploads-accessible-without-login/)
 * I’ve discovered on one of my sites that the uploads folder can be accessed without
   logging in i.e. available to anybody who types in
    domainname.com/wp-content/
   uploads Does anyone know how to prevent this please?
 * I have other sites where this does not happen, I’m mystified. The site in question
   uses a child theme of 2016.

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [John Parris](https://wordpress.org/support/users/mindctrl/)
 * (@mindctrl)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/uploads-accessible-without-login/#post-7241790)
 * Hi,
 * It depends on your hosting. You may be able to add a file named .htaccess to 
   the folder, and add the following line to it:
 *     ```
       Options -Indexes
       ```
   
 * If that doesn’t work, contact your host and ask them to deny directory listings
   in that folder.
 *  Thread Starter [pgb](https://wordpress.org/support/users/pgb/)
 * (@pgb)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/uploads-accessible-without-login/#post-7241799)
 * Thank you John, that works. What a relief!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘uploads accessible without login’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [pgb](https://wordpress.org/support/users/pgb/)
 * Last activity: [10 years, 2 months ago](https://wordpress.org/support/topic/uploads-accessible-without-login/#post-7241799)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
