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.

Without index it shows the FTP structur

Discussion in 'General Discussion' started by admins, Apr 8, 2007.

  1. admins

    admins Active Member

    Joined:
    Jul 26, 2006
    Messages:
    44
    Likes Received:
    0
    Trophy Points:
    6
    Hi @all

    We've Cpanel and we've the following problem:

    If somone put in the fals URL wich hasn't got an index.html a.m. it shows the FTP structure.
    Can I make a custom erro-site, that they can't see the FTP structure?
    Wich error code is it?

    Can you tell me a solution?

    Thanks
     
  2. jayh38

    jayh38 Well-Known Member

    Joined:
    Mar 3, 2006
    Messages:
    1,215
    Likes Received:
    0
    Trophy Points:
    36
    Sure, If this is a single cPanel account, find or create your .htaccess file in your public_html directory and add this inside.

    Options All -Indexes

    Every directory below this will be protected unless specified by another .htaccess file with the option of +Indexes

    If this is a dedicated server, add this to the root of the home directory and every account will be affected.
     
Loading...

Share This Page