CodeIgniter Forums
(Solved)Securely storing and retrieving images - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: (Solved)Securely storing and retrieving images (/showthread.php?tid=9927)



(Solved)Securely storing and retrieving images - El Forum - 07-13-2008

[eluser]markanderson993[/eluser]
Alrighty well I have created an uploading system where upon signing up a user gets a unique folder 40 characters long created for them in an uploads folder. Here is my folder schema.

System
Uploads
Htdocs

Is it a good practice for the uploads folder to be outside the htdocs folder and is it a good practice for each user to get their own folder? If there is any conventional way to organize images and retrieve them(serving them from a php file so as to protect the original location and thwarting bandwidth thieves) could someone please point me in the right direction?


Any help would be greatly appreciated

Thanks,
Mark


(Solved)Securely storing and retrieving images - El Forum - 07-13-2008

[eluser]Bramme[/eluser]
If you're concerned about hotlinking, your best shot is to protect them with a .htaccess file if you ask me.

I'd store them in separate folders too, but that's just personal taste I think.


(Solved)Securely storing and retrieving images - El Forum - 07-13-2008

[eluser]markanderson993[/eluser]
Cool, thanks


(Solved)Securely storing and retrieving images - El Forum - 07-13-2008

[eluser]markanderson993[/eluser]
Irrelevant