The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

Index of WP Content / Uploads (8 posts)

  1. dtjointi
    Posted 4 years ago #

    Hi There,

    Is there any way to block the wp-content/uploads page from being accessed by the general public?

    If i have uploaded something I am not putting on the site, I don't really want the general populus seeing this.

    Can anyone help please?


  2. Sure with .htaccess :)

    At the very top put this:

    Options -Indexes

  3. dtjointi
    Posted 4 years ago #

    Most appreciated.

    I am barely computer literate in alot of ways but have read up on the .htaccess just now but am unsure how to implement it.

    Is this within the wordpress platform?


  4. esmi
    Forum Moderator
    Posted 4 years ago #

    No. .htaccess files are used by Linux servers generally.
    Creating an .htaccess file

  5. Girmay
    Posted 4 years ago #

    No need for all that. Just create a blank index.php or index.html and upload it to your uploads folder

  6. Doesn't help your subfolders. You'd have to make an index.php in every single folder under uploads. .htaccess on the other hand covers everything :)

  7. Girmay
    Posted 4 years ago #

    @Ipstenu agreed. people are uploading all kind of stuff to the "uploads" folder. I hate seeing the commercial theme I created uploaded there for the world to see :( My thought is that, if the root is protected, one can only guess the wordpress-created folders (2012...2011...)

  8. Or one can right click on an image on your site, get the URL, and go to town :/ .htaccess is more robust, and pretty painless to apply. Once you can learn to edit the .htaccess, you can do anything! :D

Topic Closed

This topic has been closed to new replies.

About this Topic