+ Reply to Thread
Results 1 to 1 of 1

Thread: Block Site Directory Index

  1. #1
    Junior Member
    Join Date
    Oct 2015
    Posts
    19

    Block Site Directory Index

    When user enter the plugin or template folder path to browser, than this direcory index is showing:

    Example
    http://xxx.com/plugins
    http://xxx.com/templates
    http://xxx.com/plugins/underConstructions/

    I know, I prevent this adding a .htaccess or blank index.html page in every folders. But many folders have. Any short way prevent this?

    ---------------------------------------------------------------------------------------------------

    EDİT:
    OK I found solution.

    I added this line to .htaccess file (I hope to no encounter a problem)

    # Prevent Directoy listing
    Options -Indexes
    Also I added to this line for prevent some files direct access (I hope to no encounter a problem)
    # Prevent Direct Access to files
    <FilesMatch "\.(tpl|ini|log|xml)">
    Order deny,allow
    Deny from all
    </FilesMatch>
    Last edited by Yucel Uysal; February 22, 2016 at 12:34 PM.

+ Reply to Thread