Finally I sorted this out, problem was absence of quotes in the settimeout function, making my code going inside of an endless loop, however, I still have some problems, here is the final code:
Also, dont use short tags for PHP, as it will give you headache on many servers. As it is OFF by default in PHP now. You can enable it in php.ini but i will suggest to use full tag like <?php , not just <?. Like in your above code its short tag.
EDIT: Late, I think i was in the writing state while you updated your post. Any how wanna share the solution?
I am doing all this bambo jambo to just prevent my images from copied, time-encrypted links, php files as proxy, HTTP referrer checks etc. Sometimes even my site itself can’t display it is own images. But Firefox gives me creeps. Thanks to its “page info” thing, one can easily download images from my site. I even send no-cache, must revalidate header with my images. But firefox … Arrrgghh
To my knowledge there is no way to protect images i mean normal images not water mark images for selling or presentation.
The user who want it will find this way or the other way to get the image.
@OP: You could write a Flash app to present the image gallery, but this will only deter casual leeches, not determined ones. Is it worth your trouble, you have to ask yourself.
I agree, time wasted for you. Everything that comes down to my computer is more or less mine. There will allways be a way to keep it there (you can only make it a bit more difficult, but you can not stop it).
Unfortunately, you are right Thou I wish there was a attribute as private, like <img src="" private=“true”> that will tell browsers about disabling copy option
That is very very wishfull thinking. Everybody can write browsers, there is no way to “forbid” such a programmer/program to do what it wants with any data it can read from the Internet. Telling browsers what one wants is allways only a suggestion.