protecting images.......

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

tsg
Forum Contributor
Posts: 142
Joined: Sun Jan 12, 2003 9:22 pm
Location: SE, Alabama
Contact:

Post by tsg »

You can have the display image shown with a copyright watermark image over it (as an imagecopymerge ... done with the GD library). Either on upload or display.

With the copyright watermark, image will be useless for print or displaying on another website.

Also, with the watermark / image overlay on it, if they do save it (and you have the web address on the watermark image), then they know where it came from and may make a return visit, but they are not likely to post on a another webite or anything.

Tim
User avatar
dull1554
Forum Regular
Posts: 680
Joined: Sat Nov 22, 2003 11:26 am
Location: 42:21:35.359N, 76:02:20.688W

Post by dull1554 »

i might do that, just overlay a transparent gif

thanks for that super idea, i did not want to do it on upload, and i dont know why i did not think about doing it on image display

but then if they view the source, then can see the actual image location cant they, then just type in the url......eg. http://1.1.1.1/image.png

is there a way to make it so only php can access an image file
or something of that sort
tsg
Forum Contributor
Posts: 142
Joined: Sun Jan 12, 2003 9:22 pm
Location: SE, Alabama
Contact:

Post by tsg »

yes, create a page to just call the image (take a look at this link: http://us4.php.net/function.readfile )

Then use a <img src="display_image_page.php?image=453"> to display the image.

With manipulation of headers on the page you create to call the image, you can even have is shown or saved than a different file name.

Confusing (it is now, but I am sipping my brandy now :) ) ??? probably, but I hope it helps.

Tim
ilovetoast
Forum Contributor
Posts: 142
Joined: Thu Jan 15, 2004 7:34 pm

Post by ilovetoast »

Be aware that the Photoshop clone stamp tool will make short work of any watermark.

Consider lower resolution instead then they can't print very well no matter what.

You could always consider just accepting that determined thieves will steal no matter what and decent people will pay fair prices for quality products.
Post Reply