When you post something on the Web, you run the risk that someone is going to steal it. In fact, just last week, I found a site that had stolen one of my articles and posted it on their site without permission. This is a fact of the Web.

Blocking Right Click or the Context Menu

One of the simplest ways to help prevent your images from being downloaded without your permission is to put up a no right-click script. When people right click on your page, they will either get no options to download the image, or they will get a pop-up error message (depending upon how you code the script).
This is very easy to do, but also easy to get around.

You only need one line to prevent right clicking in Firefox and Internet Explorer (Opera ignores this and other no-right-click scripts). This line of JavaScript will block both right clicking and accessing the right-click menu from the keyboard. It will not block viewing the source or downloading images in other ways.

<body oncontextmenu="alert('You may not right click'); return false;">

Shrink Wrapping Images

Shrink wrapping an image is a JavaScript technique where you display your image with another, transparent image overlaid on top. Then when the thief tries to download the image, they get something else instead – usually a blank image.
For someone who is determined, this method can be circumvented as well.

Watermarking Is Fairly Effective

Watermarking is where you place an overlay directly on the image. This usually impacts the quality of the image such that potential thieves don’t want to steal it. This is a very effective way to protect your online images if you don’t mind the text across the top of them.

Using Flash Can Protect Your Images

It is also possible to set up a slideshow in Flash to display your images. This makes it impossible for thieves to download the images directly.

But, Fully Protecting Your Images is Impossible

If you post your images online, it is possible for someone to steal them and use them somewhere else. No matter what you do to protect them.
No right-click scripts can be defeated by using a view source bookmarklet and browsing to the image directly. Shrink wrapping the images can be defeated the same way.
Watermarks can be removed (with difficulty).
Even if you embed your images in a Flash object or something else to protect them, it’s possible to take a screen shot of the desktop as that object is displaying your image.
If your image is so valuable that you want to be sure no one ever steals it, then don’t post it online. That is the securest and safest method of protecting your digital images.