Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

In case browser for my site shows file structure

Discussion in 'General Discussion' started by lse, May 10, 2016.

  1. lse

    lse Active Member

    Joined:
    May 5, 2016
    Messages:
    39
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Polis, Cyprus
    cPanel Access Level:
    Root Administrator
    In case browser for my site shows file structure - in case in a directory without index file like css or js - what can be done ... in server? VPS cent OS 6.7.

    i mean in other words when go to site.com/js show list of js files? site.com/js/index.html only if this index.html exist Not go to list...

    well how prevent it
     
    #1 lse, May 10, 2016
    Last edited by a moderator: May 10, 2016
  2. lse

    lse Active Member

    Joined:
    May 5, 2016
    Messages:
    39
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Polis, Cyprus
    cPanel Access Level:
    Root Administrator
    solved by below... is any way setup a default .htaccess file for all sites from cPanel...?

    .htaccess


    # disable directory browsing
    Options All -Indexes
     
  3. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    16,585
    Likes Received:
    439
    Trophy Points:
    583
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    This is an option in WHM:
    Home »Service Configuration »Apache Configuration »Global Configuration, Directory “/” Options
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. lse

    lse Active Member

    Joined:
    May 5, 2016
    Messages:
    39
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Polis, Cyprus
    cPanel Access Level:
    Root Administrator
    so disable indexes correct?
     
  5. lse

    lse Active Member

    Joined:
    May 5, 2016
    Messages:
    39
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Polis, Cyprus
    cPanel Access Level:
    Root Administrator
    ok Worked
     
  6. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,442
    Likes Received:
    1,962
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    I'm happy to see the issue is now resolved. Thank you for updating us with the outcome.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice