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.

blocking directorys

Discussion in 'General Discussion' started by genswat, Feb 15, 2008.

  1. genswat

    genswat Registered

    Joined:
    Feb 15, 2008
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    51
    when I enter a parent directory like www.mysite.com/This Directory
    this directory is showing all files as url links parent directory well I want to stop this from being viewable

    how can I make these files non accessable?
     
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    15,618
    Likes Received:
    296
    Trophy Points:
    433
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    upload a blank index.html to each directory you want to "protect".

    Your host should have been able to answer this one for you.
     
  3. tish

    tish BANNED

    Joined:
    Feb 24, 2004
    Messages:
    24
    Likes Received:
    0
    Trophy Points:
    151
    My Favorite, that I add a few things to :D


    Also InfoPro I have a couple of questions for you, if you don't mind please?

    Thx...Jim

    ---------------

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

    <html>
    <head>
    <title>Untitled</title>
    </head>

    <body>



    <script language="javascript">
    <!--

    function messageBox(textstring,textstringa,textstringb,textstringc,textstringd){

    alert(textstring)

    onClick=(textstringa)

    alert(textstringa)

    onClick=(textstringb)

    alert(textstringb)

    onClick=(textstringc)

    alert(textstringc)

    onClick=(textstringd)

    alert(textstringd)

    }

    //-->
    </script>


    </head>

    <!-- Put the below code into the BODY of your HTML document -->

    <body onLoad="messageBox(' Your browser crashes on 5! ',' 4! ',' 3! ',' 2! ',' Just Kidding! ')">
    <!-- END OF SCRIPT -->


    </body>
    </html>
     
  4. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    15,618
    Likes Received:
    296
    Trophy Points:
    433
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Doesn't work. Looks like it's missing a "few things" ;)

    Am I going to regret it? :p
     
  5. tish

    tish BANNED

    Joined:
    Feb 24, 2004
    Messages:
    24
    Likes Received:
    0
    Trophy Points:
    151
    Did you name it " index.html " ??

    It doesn't do anything, pop stanard windows popups...

    :p
     
Loading...

Share This Page