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

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

protecting images.......

Post by dull1554 »

I'm developing a website for a industrial photographer and he wants to sell some of his prints on the site, but he wants to make it so that a user is not able to save and print the image themselves, i know you can disable right-click with JS, but is there a way to make a image impossiable to save, even if you go to File->Save, and save the entire page?????

any suggestions or ideas, would be great.......just not too sure as how to go about it.........




thanks a mill
User avatar
uberpolak
Forum Contributor
Posts: 261
Joined: Thu Jan 02, 2003 10:37 am
Location: Next to the bar

Post by uberpolak »

No. No matter what you do you can always make a screenshot. There's no way to do this, if you really want to make it secure, make the web versions of the graphics say "SAMPLE" or something like that across the picture, thus rendering them useless without a purchase of the original.
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 know that you can make a screenshot, and that you cant stop that, are you sure there is no way to encode the image or something like that so that if its saved it just turns into gobleygook......

or maybe put them into a flash file, is there a way to make .swf files with php or another language????
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 »

is there a perfered way to protect images

like "sample" across it, or puting it in a 1 frame video or something like that, or is there a way to make it so if the person downloads the image it turns it to junk
User avatar
tim
DevNet Resident
Posts: 1165
Joined: Thu Feb 12, 2004 7:19 pm
Location: ohio

Post by tim »

not that I know of..

How I did mine (which isnt safe at all) was I used javascript to disable the right click function of the mouse... anyone with a image ripper (psp, etc) can steal it... plus, once a user visits the site, most browers will download the image(s) into a temp folder for easy/faster loading on the next visit to the page.

Just more to think about, no way you'll get it 100%
Illusionist
Forum Regular
Posts: 903
Joined: Mon Jan 12, 2004 9:32 pm

Post by Illusionist »

no clue on hwo to protect your images, well i might, but yto make .swf you need FlashMX by Macromedia... not that hard to learn if you know bit of Java, plus there are abundant amounts of resources available, as are with any programming language now!
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post by John Cartwright »

best thing to do is load up photoshop

-put the image on layer 1
-make another layer (layer2) on top of layer 1
-put some big text over the image ie. SAMPLE
-set the transparency to like 20%

now it wont matter is they download it or not... no one would like to see sample over the img :p
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 »

is there a way to overlay transparent text using GD, cause i don't want to have to change the images by hand
User avatar
mrvanjohnson
Forum Contributor
Posts: 137
Joined: Wed May 28, 2003 11:38 am
Location: San Diego, CA

Post by mrvanjohnson »

Brian
Forum Contributor
Posts: 116
Joined: Thu Apr 18, 2002 5:33 pm

No.

Post by Brian »

dull1554 wrote:or maybe put them into a flash file, is there a way to make .swf files with php or another language????
You can make Flash files with PHP, but people can still make screen shots no matter what. As others have suggested in this thread, you may wish to put some kind of text across the image. You can also simply not post high-resolution versions of the images; presumably, the prints would be from the highest-quality originals, but Web previews need not be.

You may also wish to look into digital watermarking, such as that offered by Digimarc right in Photoshop.
Brian
Forum Contributor
Posts: 116
Joined: Thu Apr 18, 2002 5:33 pm

That is a Very Bad Idea.

Post by Brian »

tim wrote:How I did mine (which isnt safe at all) was I used javascript to disable the right click function of the mouse...
When you disable contextual menus for your Web site, you may cripple several functions of your visitors' browsers that have nothing to do with protecting your images (navigation, bookmarking, properties, translation, toolbar options, etc.), which the method fails to do anyway. As with blocking text selection and combination keys for opening links in new windows, blocking contextual menus is rude and more likely to annoy and alienate your visitors than to protect anything.
d3ad1ysp0rk
Forum Donator
Posts: 1661
Joined: Mon Oct 20, 2003 8:31 pm
Location: Maine, USA

Post by d3ad1ysp0rk »

Illusionist wrote:but yto make .swf you need FlashMX by Macromedia... not that hard to learn if you know bit of Java
Why do you need to know Java to learn flash..?

Actionscript != Java || JavaScript :wink:
User avatar
Dr Evil
Forum Contributor
Posts: 184
Joined: Wed Jan 14, 2004 9:56 am
Location: Switzerland

Post by Dr Evil »

All can do is repeat what others said before.
Once somebody sees the image on his screen, he has it ! There is no way you can show the image and then take it back.

Your only solution is, as mentioned above, to add a very visible watermark.

Dr Evil
User avatar
JayBird
Admin
Posts: 4524
Joined: Wed Aug 13, 2003 7:02 am
Location: York, UK
Contact:

Post by JayBird »

Haven't we been here before - viewtopic.php?t=12675&start=15&postdays ... ht=protect image

There are ways to not allow
Saving from the web page and contents with mouse and browser commands.
Site and file grabbers, search and spider programs.
From browser cache or the Temporary Internet Folder.
Screen capture programs and PrintScreen.
Piracy and redistribution of server hosted files

Read all my posts on the link i gave above. There are some links to plugins that will protect your images.

Im not saying this is the best solution, but it is a solution.

Mark
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 »

is there a simple way to overlay transparent text using GD
Post Reply