Folder Directory Security Problem

Discussion in 'HTML & Website Design' started by DreamBig, Jul 13, 2007.

  1. #1
    (For files you don't want people to access or steal)
    Do you upload your files to the public.html directory or do you upload it outside of the public.html directory. Is it a good idea to upload all your files (html, .exe, zip) to the public.html directory. Any suggestion would be appreciated. Thanks
     
    DreamBig, Jul 13, 2007 IP
  2. wendallb

    wendallb Active Member

    Messages:
    180
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    78
    #2
    If you want people to see the files such at index.html then put them in or above the public-html or if you dont want people to see them put them below the pulic-html.

    I hope this helps.
     
    wendallb, Jul 13, 2007 IP
  3. DreamBig

    DreamBig Guest

    Messages:
    19
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    What about downloadable files like .exe or zip files. Should I put them outside of the public.html directory.
     
    DreamBig, Jul 16, 2007 IP
  4. krt

    krt Well-Known Member

    Messages:
    829
    Likes Received:
    38
    Best Answers:
    0
    Trophy Points:
    120
    #4
    Depends on how you deliver downloads, I tend to keep downloadable files within the web root (e.g. public_html) and manage security with htaccess and/or server side scripting.
     
    krt, Jul 16, 2007 IP