• bloggedmaster

    (@bloggedmaster)


    I want to know how to prevent users from viewing the files(images) with in a directory. just similar to index.html page addition in general directories how can I do it for the entire uploads folder ?

Viewing 5 replies - 1 through 5 (of 5 total)
  • moshu

    (@moshu)

    You put an empty index file in any directory that doesn’t have one…
    It is not a WP issue but general “webmastering”…

    Thread Starter bloggedmaster

    (@bloggedmaster)

    its not possible to add file in all the upload folders as usually atleast 3 folders are created a week ?? and already there are more than 50 folders

    t3ch33

    (@t3ch33)

    i can’t think of the exact rewrite rule, but you can play with the .htaccess file to prevent users from viewing the directory. do a google search.

    Try adding Options -Indexes as a line in the .htaccess file that is in the main WordPress folder/directory. I believe that should cascade down to all the sub-directories.

    Just set the CHMOD to 711.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘How to prevent users from viewing directory?’ is closed to new replies.