synstealth Posted March 27, 2008 Share Posted March 27, 2008 ive created members section with sessions to view images and movies. my problem is that once a member pays to view the image or movies, they are able to view the source and find the absolute path that points to an image. even if the directory listing is denied but it still gives access to the user who is trying to view the image or movie from a different location.. I want to hide the path that is visible in the source.. how do i do this. I was told to use http headers to pass the image using fpassthru.. im concerned abt security of using the fopen.. any idea or suggestions. I need to secure my site!!! Link to comment https://forums.phpfreaks.com/topic/98077-prevent-images-and-movies/ Share on other sites More sharing options...
doni49 Posted March 29, 2008 Share Posted March 29, 2008 Don't store the files in a publicly accessible location. Put them in a secure location or even a db. Once your script has confirmed that they are permitted access, you then proceed to give them the file. Do a search on storing images in a DB. Most of them have examples of how to put the data in and how to get it out and how to provide that file to the user. HTH Good luck. Link to comment https://forums.phpfreaks.com/topic/98077-prevent-images-and-movies/#findComment-503769 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.