Possible Duplicate:
Good Way to Secure File Uploads in PHP
I want to upload some images by using php, and I know that storing them in database is not the right practice, therefore I am going to store them on my web server.
The problem is that this website has a user system and i want only allowed users to access those images and if I put them on web server how can I secure them so that people cant get to them by writing a direct URL to the files?
Thank you for all your help, and it would be great if you can give or refer to an example.