Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 12 of 12
  1. #1
    Member
    Join Date
    Mar 2002
    Posts
    5

    Default How can I avoid public access to any subfolder?

    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!
    Pere

  2. #2
    Member
    Join Date
    Mar 2002
    Posts
    5

    Default

    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!
    Pere

  3. #3
    Member
    Join Date
    Oct 2001
    Posts
    92

    Default

    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. #4
    Member
    Join Date
    Mar 2002
    Posts
    5

    Default

    Thank you, Damian.

    This is exactly what I was looking for.

    I appreciate very much your help.

    Regards,
    Pere

  5. #5
    Member
    Join Date
    Mar 2002
    Posts
    5

    Default

    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,
    Pere

  6. #6
    itf
    itf is offline
    Member
    Join Date
    May 2002
    Posts
    626

    Default

    [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
    Please use messengers to contact me:
    MSN: patrickay@msn.com
    AIM: PatrickITF

  7. #7
    cPanel Partner NOC cPanel Partner NOC Badge DWHS.net's Avatar
    Join Date
    Jul 2002
    Location
    LA, Costa RIca
    Posts
    1,356

    Default

    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. #8
    Moderator cPanel Partner NOC Badge dgbaker's Avatar
    Join Date
    Sep 2002
    Location
    Toronto, Ontario Canada
    Posts
    2,773

    Default

    [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.
    Regards,
    David
    Forum Moderator

  9. #9
    Member
    Join Date
    Feb 2003
    Posts
    61

    Default

    Were is this index manager located. Im using vertex as a default page.

    regards,

    Brian

  10. #10
    Member
    Join Date
    Aug 2001
    Posts
    707

    Default

    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. #11
    JC
    JC is offline
    Member
    Join Date
    Nov 2002
    Posts
    88

    Default

    Originally posted by dgbaker
    [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.
    How about placing it in httpd.conf?
    That should make it server wide without needing htaccess files all over the server

  12. #12
    Member
    Join Date
    Sep 2001
    Location
    Spain
    Posts
    779

    Default

    Originally posted by JC
    How about placing it in httpd.conf?
    That should make it server wide without needing htaccess files all over the server
    http://forums.cpanel.net/showthread....ht=access.conf

Similar Threads & Tags
Similar threads

  1. Restricting public access for one account
    By xioplox in forum New User Questions
    Replies: 0
    Last Post: 07-19-2010, 07:10 AM
  2. public access to file via wordpress
    By ognyang in forum New User Questions
    Replies: 2
    Last Post: 12-26-2009, 08:43 PM
  3. SSH access via Public Key Auth for cPanel users - How?
    By jols in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 02-28-2008, 03:58 AM
  4. public access file need to be renewed [moved[
    By mariama in forum New User Questions
    Replies: 1
    Last Post: 03-03-2006, 10:56 AM
  5. Avoiding public access to subfolders
    By zopm in forum cPanel and WHM Discussions
    Replies: 8
    Last Post: 06-05-2003, 10:10 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube