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 8 of 8
  1. #1
    New Coder
    Join Date
    Apr 2004
    Posts
    24
    Thanks
    0
    Thanked 0 Times in 0 Posts

    They can see my files

    Guys, sorry, i know i should've posted this in apache forums but peeps here very active and helpful to beginners...

    anyway, i change my httpd.conf <Controls who can get stuff from this server.> Allow from All

    ...well good.. but now, they can see the contents of my folders.. and everything.. how can i prevent users from seeing my files...

    thanks.

  • #2
    New to the CF scene
    Join Date
    Apr 2004
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Hi there

    Hi There

    I don't know if this can help you

    In your root dir, create 3 index files.

    index.html
    index.htm
    index.php

    if this dosen't help try to look in you're conf file for the line containing : DirectoryIndex index.html index.html.var, this is the default setting, and shows that index.html is the default webpage that the browser would open, but if it dosen't exist it will list the dir instead.

    But try to create those 3 index files, i think that could help you out or edit the conf, with the Directoryindex line, should look like this the

    DirectoryIndex index.php index.html index.htm

    Hope i works, i'm still new in apache only tried it out for 2 days now


    Regards



    Benno

  • #3
    New Coder
    Join Date
    Apr 2004
    Posts
    24
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Tnx., actually things are ok.... they can see my site.. and load by default "index.htm" ... but the thing is... ofcourse there are lots of folders in a site... i mean, users can navigate my site by typing like this..

    http://site/ ... OK no problem, the index file is loaded, but users who wanted to view the content of my site do this..

    http://site/images/ .... boom.. all the files are listed, i try doing this to other web sites.. and they give a prompt: <HTTP 403> "You are not authorized to view this page."

    WELL how can i enforce this security in my site...?? thanks anywy.. it's really hard when ur a beginner...

  • #4
    New to the CF scene
    Join Date
    Apr 2004
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Hi Again

    You can put a index file in every folder, that can then redirect to the error page or you can create you own error page like Access Denied, no entry granted or make a redirect to the front end of your webpage.

    I'm always putting a index. php, index.html, index.htm in every folder i have, it's easy and quick.
    just copy them to every folder and you are done.

    BR

    Benno

    Sorry for my bad English I'm Danish

  • #5
    raf
    raf is offline
    Master Coder
    Join Date
    Jul 2002
    Posts
    6,589
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I think you better solve this by disabeling directory browsing
    http://www.google.be/search?q=apache...-8&hl=nl&meta=
    Posting guidelines I use to see if I will spend time to answer your question : http://www.catb.org/~esr/faqs/smart-questions.html

  • #6
    Mega-ultimate member
    Join Date
    Jun 2002
    Location
    Winona, MN - The land of 10,000 lakes
    Posts
    1,855
    Thanks
    1
    Thanked 45 Times in 42 Posts
    I think this line is what's causing you problems (in your httpd.conf)

    Code:
        Options Indexes FollowSymLinks MultiViews
    Delete the 'Indexes' and you should get the same 403 error.

    (btw - The title reminded me of the now famous "I see dead people" line )

  • #7
    Regular Coder dniwebdesign's Avatar
    Join Date
    Dec 2003
    Location
    Carrot River, Saskatchewan
    Posts
    842
    Thanks
    15
    Thanked 9 Times in 9 Posts
    You can use .htaccess to restrict directory viewing.
    Dawson Irvine
    CEO - DNI Web Design
    http://www.dniwebdesign.com

  • #8
    New Coder
    Join Date
    Apr 2004
    Posts
    24
    Thanks
    0
    Thanked 0 Times in 0 Posts
    thanks a lot guys... !!!


  •  

    Posting Permissions

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