Jump to content
Larry Ullman's Book Forums
Sign in to follow this  
grahamgr3

Where Should I Store Images On My Server

Recommended Posts

Here is my directory structure currently in the public html folder.

uploaded_images (folder)

allmyotherphpfiles.php

allmyotherphpfiles.php

allmyotherphpfiles.php

allmyotherphpfiles.php

 

Should the uploaded_images (folder) be stored outside the public html folder, so that hackers can't hack that folder, or is it safe to leave my folder like it is now.

 

Share this post


Link to post
Share on other sites

I assume the uploaded_images folder is publicly writable? If so, it'd be better if it were outside of the web directory. But if that's not possible, then add lots of code that protects what can be moved into that folder and what can be served from it. 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...