ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

File Upload Directories Hidden using .htaccess file

September 09, 2011 12:40pm

Subscribe [2]
  • #1 / Sep 09, 2011 12:40pm

    DigitalDesigns

    94 posts

    We would like to hide all of the contents in our file upload directories using one .htaccess file in the root of our site.

    We noted that the images folder is protected by default with an EE install, and we would like to do the same for all other file upload directories.

    Is there a way to do this without placing an .htaccess file in every directory?

    Thanks-

  • #2 / Sep 09, 2011 5:04pm

    Mark Bowen

    12637 posts

    Hi DigitalDesigns,

    Do you mean that if you go to a folder on your site such as :

    http://www.example.com/my_image_folder

    you get a directory listing of all the files in that folder?

    If so then this is something that you should have a word with your host about as nowadays nearly all servers are set up to disallow this from happening. It sounds like your server doesn’t have this rule set up and so you would either need to use a .htaccess file as you mentioned or better would be to have a word with your host to get them to set this up for you so that folders can’t be read in that way.

    Does that help?

    Mark

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases