Forums

Index of WP Content / Uploads (8 posts)

  1. dtjointi
    Member
    Posted 7 months 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. Ipstenu
    Half-Elf Support Rogue & Mod
    Posted 7 months ago #

    Sure with .htaccess :)

    At the very top put this:

    Options -Indexes

  3. dtjointi
    Member
    Posted 7 months 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
    Theme Diva & Forum Moderator
    Posted 7 months ago #

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

  5. girmay fesshaye
    Member
    Posted 3 weeks 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 fesshaye
    Member
    Posted 3 weeks 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

Reply

You must log in to post.

About this Topic