1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

[HELP] How to disable directory browsing.

Discussion in 'Site & Server Administration' started by PinoyEngine™, Dec 29, 2009.

  1. #1
    Hello guys! I am having problem that everybody could access my sites folder.

    Example is:

    mydomain.com/files

    they can easily browse the files under it.

    How can I limit them from doing that?
    telling.

    Forbidden.

    Thank you very much and Happy New Year!
     
    PinoyEngine™, Dec 29, 2009 IP
  2. bloomsden

    bloomsden Well-Known Member

    Messages:
    807
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    145
    #2
    You can solve this problem by using .htaccess file.

    References:

    http://zoo.yootheme.com/documentation/item/root/how-to-protect-files-using-the-download-element-and-htaccess
    Code (markup):
    http://corz.org/serv/tricks/htaccess.php
    Code (markup):
    Just create the .txt file with the things to block and upload to your host and then rename to .htaccess

    I hope this would helpful to solve your issue.
     
    bloomsden, Dec 29, 2009 IP
    PinoyEngine™ likes this.
  3. RHS-Chris

    RHS-Chris Well-Known Member

    Messages:
    1,007
    Likes Received:
    35
    Best Answers:
    10
    Trophy Points:
    150
    #3
    Easy way to hide everything, place this in your .htaccess file:

    IndexIgnore *.*


    That will ignore all files when an index is requested.
     
    RHS-Chris, Dec 29, 2009 IP
    PinoyEngine™ likes this.
  4. PinoyEngine™

    PinoyEngine™ Well-Known Member

    Messages:
    298
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    145
    #4
    thanks to both of you.
    Rep+ to both of you!

    happy New Year!
     
    PinoyEngine™, Dec 31, 2009 IP
  5. replicahome

    replicahome Peon

    Messages:
    8
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    If you use IIS,it is easy to disable it.
     
    replicahome, Jan 1, 2010 IP