The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How can I avoid public access to any subfolder?

Discussion in 'General Discussion' started by Pere, Nov 17, 2002.

  1. Pere

    Pere Member

    Joined:
    Mar 23, 2002
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    I mean, if under my index.html I have subfold1, I would like that anybody going to www.mydomain.com/subfold1/ instead of watching my tree folders was having some blank page, error message or so.

    Thank you!
     
  2. Pere

    Pere Member

    Joined:
    Mar 23, 2002
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Thank you thaphantom.

    But I think there should be a way to avoid the authomatic display of the folders tree, isn't it?

    In that case we would probably be able to manage the error log with the tools provided by CPanel.

    Any chance to get this?

    Thanks again!
     
  3. Damian

    Damian Well-Known Member

    Joined:
    Oct 1, 2001
    Messages:
    95
    Likes Received:
    1
    Trophy Points:
    8
    From the WHM News:

    Index Manager cPanel now has an index manager that allow you to turn directory indexes on and off per directory.
    (5.2.0 build 72 or later only)

    You can also do this by using a custom .htaccess file in any directory you like.

    You will find this option under &Index Manager& in the bluelagoon theme.
     
  4. Pere

    Pere Member

    Joined:
    Mar 23, 2002
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Thank you, Damian.

    This is exactly what I was looking for.

    I appreciate very much your help.

    Regards,
     
  5. Pere

    Pere Member

    Joined:
    Mar 23, 2002
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    By the way, Damian.

    You say...
    You can also do this by using a custom .htaccess file in any directory you like.

    How can this be done?

    Tks again,
     
  6. itf

    itf Well-Known Member

    Joined:
    May 9, 2002
    Messages:
    624
    Likes Received:
    0
    Trophy Points:
    16
    [quote:348fe2f5a2][i:348fe2f5a2]Originally posted by Pere[/i:348fe2f5a2]

    Thank you thaphantom.

    But I think there should be a way to avoid the authomatic display of the folders tree, isn't it?

    In that case we would probably be able to manage the error log with the tools provided by CPanel.

    Any chance to get this?

    Thanks again![/quote:348fe2f5a2]
    create an .htaccess file and append this line to it:

    Options -indexes
     
  7. DWHS.net

    DWHS.net Well-Known Member
    PartnerNOC

    Joined:
    Jul 28, 2002
    Messages:
    1,569
    Likes Received:
    6
    Trophy Points:
    38
    Location:
    LA, Costa RIca
    cPanel Access Level:
    Root Administrator
    Hello,

    Jumping in late here... does anyone happen to know how to turn off indexing for the intire server?

    Is there a option on apache or something?

    Thanks, Charles
     
  8. dgbaker

    dgbaker Well-Known Member
    PartnerNOC

    Joined:
    Sep 20, 2002
    Messages:
    2,578
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    Toronto, Ontario Canada
    cPanel Access Level:
    DataCenter Provider
    [quote:2dd8aff2a4][i:2dd8aff2a4]Originally posted by DWHS.net[/i:2dd8aff2a4]

    Hello,

    Jumping in late here... does anyone happen to know how to turn off indexing for the intire server?

    Is there a option on apache or something?

    Thanks, Charles[/quote:2dd8aff2a4]

    Easiest way is to put the .htaccess in /home and in /usr/local/apache/htdocs with the Options -indexes in it and all is done.
     
  9. ServerIntelligence

    ServerIntelligence Well-Known Member

    Joined:
    Feb 15, 2003
    Messages:
    61
    Likes Received:
    0
    Trophy Points:
    6
    Were is this index manager located. Im using vertex as a default page.

    regards,

    Brian
     
  10. moronhead

    moronhead Well-Known Member

    Joined:
    Aug 12, 2001
    Messages:
    706
    Likes Received:
    0
    Trophy Points:
    16
    If you're using the vertex theme you may be out of luck. I don't think that theme has been updated for a while.
     
  11. JC

    JC Well-Known Member

    Joined:
    Nov 6, 2002
    Messages:
    78
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Root Administrator
    How about placing it in httpd.conf?
    That should make it server wide without needing htaccess files all over the server
     
  12. Juanra

    Juanra Well-Known Member

    Joined:
    Sep 22, 2001
    Messages:
    777
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Spain
Loading...

Share This Page