php image protection
Posted on 2010-09-06
i have asked this question before on experts exchange but didn't get right answer.
here is the problem.
i am showing an image on page but i don't want people to download it. what i have done right now is disabled right click so that naive users cannot download directly, but i know disabling right click is like no protection at all. so i want a system where images are produced by php file like say i call
and image is produced but if some one accesses the script directly then he should get blank screen. previously i used sessions. when file was being accessed from my gallery page session['show'] is set to1 but when it is accessed directly session['show] is set to 0 and it was working well for me. but i found this plugin for firefox .. coolpreviews which gave user ablity to show download image no matter what.
don't know if i am being very clear here or not. but i would like if some one could help me with it.
thanks in advance