Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4

Thread: index question

  1. #1
    New Coder
    Join Date
    Feb 2004
    Location
    Puerto Rico
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question index question

    hi, i just want to know how can i avoid that other users see my server index.
    for example lets say i have installed easyphp 1.7 in my pc.and my web site is http://gabito.no-ip.com/mywebpage/main.php, if a user types http://gabito.no-ip.com/mywebpage the user can see all my files in the index. how can i avoid this? thanks

  • #2
    Regular Coder
    Join Date
    Mar 2004
    Posts
    115
    Thanks
    0
    Thanked 0 Times in 0 Posts
    depending on which web server you are using

    in iis in internet servise manager change propertys of folder and dont allow indexing or directory browsing

    in apache you can either edit the http config or use htaccess

    heres a couple of links to help
    http://httpd.apache.org/docs-2.0/mod/core.html
    http://www.javascriptkit.com/howto/htaccess11.shtml

  • #3
    Regular Coder anarchy3200's Avatar
    Join Date
    Mar 2003
    Location
    England
    Posts
    261
    Thanks
    0
    Thanked 1 Time in 1 Post
    or... you could just put in an index.html page (which servers automatically load) with a redirect to your main page then the extra main.php would not have to be typed in and it would hide the folder directory.

  • #4
    Senior Coder Mhtml's Avatar
    Join Date
    Jun 2002
    Location
    Sydney, Australia
    Posts
    3,531
    Thanks
    0
    Thanked 1 Time in 1 Post
    Or slap a password on an index page and just write a cookie so you don't have to enter it all the time, it's easy to list your contents!
    Omnis mico antequam dominus Spookster!


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •