Solved

Disable right click,ctrl,print in web page

Posted on 2009-05-04
5
314 Views
Last Modified: 2012-05-06
HI,

I would like to disable right click, Ctrl keys, Print screen,View source in all browsers.

0
Comment
Question by:Ahmed_amg
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
5 Comments
 
LVL 42

Expert Comment

by:David S.
ID: 24293373
Why annoy your users like that? There's still the Edit menu which you can't disable.  And there are other ways to copy content if people really want to.

The bottom line is if you really want to protect your content, don't put it on the WWW. (Or make people sign something like a non-disclosure agreement.)
0
 
LVL 16

Expert Comment

by:hankknight
ID: 24293492
HTML is a Hyper TEXT Markup Language and not well suited for what you wish to do.

Is there certain content on your website that you don't want people to steal?  There are tricks that you can use with HTML however anything created with HTML can be grabbed by anyone who knows anything about HTML.

If possible, deliver your content using something that provides more copy protection such as Flash or PDF.

You could create a PDF document and disable print and copy privileges for the PDF document:
http://createpdf.adobe.com/cgi-feeder.pl/help_security

Then you can place the PDF on your website in an iframe in such a way as visitors would not know it was a PDF document.  Still not fool proof but better than HTML.
0
 
LVL 16

Expert Comment

by:hankknight
ID: 24293508
You may want to ask a question about this in the Flash section:
http://www.experts-exchange.com/Software/Photos_Graphics/Web_Graphics/Macromedia_Flash/

Flash is much better suited to disable right click, Ctrl keys, Print screen, and View source.
0
 
LVL 16

Accepted Solution

by:
hankknight earned 125 total points
ID: 24293570
You may be interested in this (I have not tested it)

http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_21038839.html#11408500

However I will warn you that nothing is fool-proof!
0
 

Author Closing Comment

by:Ahmed_amg
ID: 31577475
T
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
In this tutorial viewers will learn how to code links for mobile sites that, once clicked, send a call or text to a specified number. For a telephone link (once clicked, calls a number), begin with a normal "<a href=" link tag. For the href, specify…

739 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question