Prevent copying images from web page - read-only images

Problem:
You have images on your web site that you want to protect from being copied and used. In essence you want to make them "read-only" so to speak.

Solution:
Add the HTML code by wrapping your image with it.

<span oncontextmenu="return false" ondragstart="return false"><img id="your image"/></span>

This is not 100% fool proof, am not going to explain why as that would make this post useless :-)

Print | posted @ Thursday, April 26, 2012 11:20 AM

Comments on this entry:

Gravatar # re: Prevent copying images from web page - read-only images
by Arun Mahendrakar at 4/26/2012 10:28 PM

interesting tip Renso, thanks.
Post A Comment
Title:
Name:
Email:
Comment:
Verification: