Jump to content

prevent images and movies


synstealth

Recommended Posts

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

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.