Secure method for linking to image files uploaded via custom CMS

Posted by letseatfood on Stack Overflow See other posts from Stack Overflow or by letseatfood
Published on 2010-06-01T23:11:28Z Indexed on 2010/06/01 23:13 UTC
Read the original article Hit count: 113

Filed under:
|
|
|

How does one provide a direct URL for an image file (JPEG) that is secure?

For example, if a PHP script writes uploaded images to directory http://www.somehost.com/images, is it okay to provide http://www.somehost.com/images/someimage.jpg as the URL, or is there a more secure way to do this?

Should I look into something like the permalink feature that is a part of Wordpress? I am not sure if that is related.

The main reason I ask is that I have a custom PHP/MySQL CMS for managing images. I would like for the client to be able to copy a link to the image they want and then include it in a TinyMCE text editor for inserting the image in their website.

Thanks!

© Stack Overflow or respective owner

Related posts about php

Related posts about php5