WordPress.org

Ready to get started?Download WordPress

Forums

Index of WP Content / Uploads (8 posts)

  1. dtjointi
    Member
    Posted 2 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?

    Regards,
    David

  2. Sure with .htaccess :)

    At the very top put this:

    Options -Indexes

  3. dtjointi
    Member
    Posted 2 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?

    Regards,
    Dave

  4. esmi
    Forum Moderator
    Posted 2 years ago #

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

  5. Girmay
    Member
    Posted 2 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
    Member
    Posted 2 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...)
    Thanks.

  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