• Resolved leandrocc

    (@leandrocc)


    Hi everyone,

    I have my blog on https://www.mydomain.com and files I upload to use there go on directories like https://www.mydomain.com/wp-content/2009/11/filename.

    If a user notice that and copy this link, they have direct access to the file. But if he/she erases the /filename, then they’ll get access to all files, including ones not used in any posts yet, and maybe never to be used.

    Question: Is there an easy way NOT to display this directory style page, and return to the main page (or any other one) ?

Viewing 3 replies - 1 through 3 (of 3 total)
  • MichaelH

    (@michaelh)

    Could copy the index.php from wp-contents folder into each of those sub-folders.

    Essentially that file is a php script that does nothing

    <?php
    // Silence is golden.
    ?>
    MichaelH

    (@michaelh)

    Or this .htaccess trick which I just tried in the uploads folder

    # Don't allow directory browsing
    Options All -Indexes

    Thread Starter leandrocc

    (@leandrocc)

    thanks a lot!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘hide directory structure’ is closed to new replies.