MooTools 1.2 Image Protector

Written by on August 5th, 2008 in Uncategorized.

It always makes me laugh a little when people try to “protect” things on the Internet. The dwProtector tries to “protect” your images with you just having to:

JAVASCRIPT:

  1.  
  2. window.addEvent(‘domready’, function() {
  3.         var protector = new dwProtector({
  4.                 image: ‘/blank.gif’,
  5.                 elements: $$(‘.protect’)
  6.         });
  7. });
  8.  

How does it protect?

  • Prevents right-click “Save Image As”.
  • Prevents dragging an image to the desktop.
  • Prevents right-click “Save Background As”.
  • Prevents right-click “View Background Image”

Check out the example and try to copy it. Of course, a simple print screen / apple-shift-4 does the trick, let alone a view-source.

Source: Ajaxian » Front Page
Original Article: http://feeds.feedburner.com/~r/ajaxian/~3/356218514/mootools-12-image-protector

Comments are closed.



Site Navigation