Ask the Expert

How can I disable "Save Picture As" from the right-click menu?

How do I disable the "Save Picture As" from the right-click menu on my ASP Web page, so users won't be able to save images?

    Requires Free Membership to View

First, let me say that there is currently no way to use technology to stop someone from copying your pictures from a Web site. If they are able to view your picture on their monitor, they can save it to their hard drive.

With that said, you can disable the menus in Internet Explorer and other Java-based browsers. I did a quick search on Google for the phrase "disable 'save picture as'" and found several sites that gave Java code that could be inserted into your page to remove the right-click menus. Click here for results to that search.

As I mentioned, this is not a perfect solution. The user's browser still stores the image in the cache, which generally means the file is written to the user's hard drive. The user could examine the browser's cache and pull the file directly from the hard drive. This solution also depends on the HTML page in which the image is referenced. Therefore, if the user places the URL to the image in the browser window, that user will bypass your Java script and be allowed to right-click on the image. Another method to save images is practically impossible to defeat -- the user could press alt-PrintScreen to capture the entire browser window to the clipboard, then paste the capture into a program such as Microsoft Paint.

A non-technological way to protect your images is to explicitly state their copyright. You can either add that text to the page from which the image is referenced, or use watermarking to add text directly into the image (for example, "Copyright 2002 John Doe").

This was first published in November 2002

There are Comments. Add yours.

 
TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to: