Solved

How do disable  print screen in a web page

Posted on 2010-09-09
12
867 Views
Last Modified: 2012-05-10
Hi all,
In my case, I would like to make the print screen disabled when an image popout in my web page.I am using the following javascript to clean the clipboard interval 250ms to achieve my goal.
setInterval("clipboardData.setData('Text','');",250);
But the problem is that the user need to set the IE security of the clipboard enabled.I want to disable the print screen and the user not need set anything.Any other good idea about this case?
0
Comment
Question by:whbcn
  • 4
  • 3
  • 2
  • +3
12 Comments
 
LVL 13

Expert Comment

by:NarendraG
Comment Utility
No, it is not possible. Even if it was possible with JavaScript, the user could simply disable JavaScript to bypass it.
0
 
LVL 29

Expert Comment

by:QPR
Comment Utility
Considering that the user already has your image (temp internet files) when they view it, nothing you can do can stop them from having it.
You could put a transparent div over the image which would stop right click save as or you could put a water mark over your images but either way it is on their hard drive if they know where to look
0
 
LVL 48

Expert Comment

by:hernst42
Comment Utility
not possible as there are good reasons to not allow the browser to modify the clipboard per default.
There are also a lot of other tools which can make screenshots without using the clipboard.
0
 

Author Comment

by:whbcn
Comment Utility
The user clicks a button and popout a special image in a div that can not be saved right click, and the image is generated from a servlet that there is not temp internet file.
I just want to disable the print screen simply, not need to consider the other screenshot tools, not need to consider the user is an advanced PC user.
I don't want  the special image easy cutted just click the print screen button.
0
 
LVL 29

Expert Comment

by:QPR
Comment Utility
No can do. Sorry
Good job too! Who wants web pages that are able to change my settings?
0
 
LVL 22

Expert Comment

by:kadaba
Comment Utility
Simpler... if you need to protect your image you could use your water mark and render the image.
0
Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

 
LVL 29

Expert Comment

by:QPR
Comment Utility
this was mentioned quite a few posts ago kadaba :)
0
 
LVL 22

Expert Comment

by:kadaba
Comment Utility
Oh man, I dint observe that, thanks for pointing that out :)
Then that should go as accepted ;)
0
 

Author Comment

by:whbcn
Comment Utility
Any other solutions?Except javascript, how about using a applet in a web page?(Users have installed jre)
0
 
LVL 29

Accepted Solution

by:
QPR earned 500 total points
Comment Utility
not possible in ANY language/technology. How do you expect to restrict the print screen functionality on a users computer? Can't be done
0
 
LVL 75

Expert Comment

by:Michel Plungjan
Comment Utility
Much better giving them a poorer resolution with a watermark.
0
 

Author Closing Comment

by:whbcn
Comment Utility
The answer was not solution, but useful.
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

771 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now