php - Is it possible to not expose my directory where I upload images? -


in website people can upload photos. , show them. possible, not able see url image is?

photos shown <img src="http://mywebsite.com/my_images/image_name.gif" />. want do, people couldn't see src link. there way show photos directory without exposing directory name?

thanks.

there isn't, can use url rewriting (apache's mod_rewrite or custom php script serve images) hide actual location on web server.

for example latter approach coud have serveimage.php on server, called serveimage.php?file=file1.jpg.


Comments