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!

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:
    156
    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:
    166
    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

  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