clr
[
    [  
  [
line
Copy protect web pages and online images from all copy and save
[

Code Snippets For Webmasters : No Print Screen

Disable Print Screen - Prevent Print Screen

There is a JavaScript code snippet for disabling Print Screen. This JavaScript will clear the clipboard repeatedly so that any attempts to copy and paste or use the Print Screen key will be thwarted by replacing the clipboard with emptiness.

This works in Internet Explorer only and depending upon the browser's security settings, will more than likely request permission to allow JavaScript to access the clipboard every time it refreshes. Clicking to not allow will disable the script and enable Print Screen on Internet Explorer (IE).

It has absolutely no effect whatsoever on Mozilla browsers.

Evaluation

This page can be tested: Click the Print Screen key and then open Microsoft Paint (Start > Programs > Accessories > Paint) to paste the image.

Installation

You can use this script directly on your page (left example) or by using a JavaScript insert (right example). Either way, the placement of the script can be either in between the head tags or the body tags of your HTML.

<SCRIPT language="JavaScript" type="text/javascript">
<!--

SCRIPT GOES HERE

// -->
</SCRIPT>
<SCRIPT SRC="no-printscreen.js"></SCRIPT>

Effectiveness

Do not count on this method for copy protection at all. It only works in IE (with warnings) and it will not prevent screen shots that were taken by any one of the hundreds of screen capture utilities. To prevent Printscreen and screen capture effectively, you need a plugin solution that works at system level like the CopySafe Runtime utilized by CopySafe Web and the CopySafe PDF Reader solutions.

Download

Click to download No-Printscreen.zip (2 Kb)



Return to the Code Snippets Index
[
Products:

ArtistScope CD
ArtistScope DRM
ArtistScope Translate
ArtistScope WARM
ArtistScope Web Encrypt
ArtistScope Web Reader
CopySafe PDF Protector
CopySafe Web Protection
Link Protection
Scroll Image Viewer
Secure Image Protection
Zoom Image Viewer

Secure web browser for copy protected web sites
[
 For further information or advice for the best solution for your project - click for a free consultation.
Affiliates | DRM Login | News | Purchase Software | Site Map | Support Forum | Contact Us
Copyright © 1998-2014 ArtistScope. All Rights Reserved.

clr