+ Reply to Thread
Results 1 to 8 of 8

Thread: Pervent index view

  1. #1
    jensen's Avatar
    jensen is offline x10 Lieutenant jensen is an unknown quantity at this point
    Join Date
    Nov 2005
    Location
    At my desk
    Posts
    438

    Pervent index view

    Sometimes people cannot find the page they are looking for in your site and they remove the last words just before the "/" sign and then hit ENTER

    They would get to see all the files in that folder.

    How do we prevent that index of files from being seen?
    "For I am not ashamed of the gospel of Christ: for it is the power of God unto salvation to every one that believeth" Romans 1:16

  2. #2
    Chris Z's Avatar
    Chris Z is offline x10 Spammer Chris Z is an unknown quantity at this point
    Join Date
    Sep 2005
    Location
    Alabama, USA
    Posts
    2,802

    Re: Pervent index view

    what you could do is make sure you have a file named "index.php" "index.html" or you could just do a redirect to the main page..
    -Chris Z
    Retired Account Manager


  3. #3
    jensen's Avatar
    jensen is offline x10 Lieutenant jensen is an unknown quantity at this point
    Join Date
    Nov 2005
    Location
    At my desk
    Posts
    438

    Re: Pervent index view

    Hi billy,

    even with that index file one can still by pass that and get to your directory.
    "For I am not ashamed of the gospel of Christ: for it is the power of God unto salvation to every one that believeth" Romans 1:16

  4. #4
    dharmil's Avatar
    dharmil is offline x10 Elder dharmil is an unknown quantity at this point
    Join Date
    Sep 2005
    Location
    Avenel New Jersey
    Posts
    828

    Re: Pervent index view

    very simple
    creat a .htaccess file and put this in there
    Code:
    IndexIgnore *
    it will hide all your files
    Last edited by dharmil; 07-20-2006 at 09:02 PM.

  5. #5
    Spartan Erik's Avatar
    Spartan Erik is offline Retired Spartan Erik is an unknown quantity at this point
    Join Date
    Aug 2005
    Posts
    3,382

    Re: Pervent index view

    Quote Originally Posted by jensen
    Hi billy,

    even with that index file one can still by pass that and get to your directory.
    Really? I put an index.html file in the subdirectory I wanted to hide from the public, and it works fine.. I also put a 2 second HTML redirect on it too..

  6. #6
    Chris Z's Avatar
    Chris Z is offline x10 Spammer Chris Z is an unknown quantity at this point
    Join Date
    Sep 2005
    Location
    Alabama, USA
    Posts
    2,802

    Re: Pervent index view

    ya i'm not sure what he's talking about..maybe there's some sort of "function" that allows you to see it or something :dunno:
    -Chris Z
    Retired Account Manager


  7. #7
    Bryon is offline Administrator Bryon has disabled reputation
    Join Date
    Apr 2005
    Location
    Northfield, NH
    Posts
    7,608

    Re: Pervent index view

    In an .htaccess file write:

    "Options -Indexes"

    That will give all directories, (From "that one and lower"), a "Permission denied, you dont have access blah blah blah" HTTP error when someone attempts to view it's listing.

    It's basically the same thing that Dharmil posted, but instead it gives the permission denied error.

  8. #8
    kryptonyte's Avatar
    kryptonyte is offline x10 Sophmore kryptonyte is an unknown quantity at this point
    Join Date
    Jul 2006
    Location
    South Carolina
    Posts
    108

    Re: Pervent index view

    Go into Cpanel and click the Index Manager. ;)

+ Reply to Thread

Similar Threads

  1. Free MMORPG's...
    By FeestBijtje in forum Gamer's Lounge
    Replies: 15
    Last Post: 09-20-2007, 01:51 PM
  2. What Is Your World View?
    By n4tec in forum Off Topic
    Replies: 5
    Last Post: 11-06-2005, 10:35 AM
  3. [IPB] Contiguous Board Index
    By phenetic in forum Tutorials
    Replies: 5
    Last Post: 09-18-2005, 10:31 AM
  4. help with index page
    By efx in forum Free Hosting
    Replies: 2
    Last Post: 03-18-2005, 04:51 PM
  5. My Index Page Never Loads
    By yanyantang in forum Free Hosting
    Replies: 2
    Last Post: 03-13-2005, 03:41 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers