jwmstudios Posted December 17, 2006 Share Posted December 17, 2006 Hello everyone, is there a PHP script that can prevent a user from downloading a photo to their hard drive, only viewable but not downloadable? Link to comment https://forums.phpfreaks.com/topic/30922-prevent-downloading-an-image/ Share on other sites More sharing options...
fert Posted December 17, 2006 Share Posted December 17, 2006 I don't think this is possible. Link to comment https://forums.phpfreaks.com/topic/30922-prevent-downloading-an-image/#findComment-142679 Share on other sites More sharing options...
papaface Posted December 17, 2006 Share Posted December 17, 2006 This is not possible as when a person views an image in their web browser it IS actually downloaded. Link to comment https://forums.phpfreaks.com/topic/30922-prevent-downloading-an-image/#findComment-142680 Share on other sites More sharing options...
jwmstudios Posted December 17, 2006 Author Share Posted December 17, 2006 Ok Link to comment https://forums.phpfreaks.com/topic/30922-prevent-downloading-an-image/#findComment-142689 Share on other sites More sharing options...
NHStars Posted December 17, 2006 Share Posted December 17, 2006 You can't do it with PHP, the only way is if you had it in a Flash format. PHP and Flash can be used in conjunction to do this in a gallery format. However, even doing that it's still possible to steal the pictures because there are SWF decompiler programs out there and it would give anyone with Flash knowledge the ability to get the URL of your images. The only foolproof way is the PHP/Flash idea with a properly CHMOD'd directory for the images. Link to comment https://forums.phpfreaks.com/topic/30922-prevent-downloading-an-image/#findComment-142702 Share on other sites More sharing options...
marcus Posted December 17, 2006 Share Posted December 17, 2006 You could always password protect your directories, if somebody was not-lazy to actually view the image in a sep. window/tab that they couldnt access that folder Link to comment https://forums.phpfreaks.com/topic/30922-prevent-downloading-an-image/#findComment-142705 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.