Click here to Skip to main content
15,890,579 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have a site for which I want that user should not be able to take screenshot using snipping tool.
Is it possible? if so please guide me to build the code.

What I have tried:

I have successfully disabled the screenshot capturing using print screen button.
Posted
Updated 30-Oct-18 3:05am
Comments
Richard Deeming 30-Oct-18 9:31am    
Even if you were somehow able to prevent any screen-shot software on the computer from taking a picture of your site (hint: you can't, as Dave mentioned), there would be nothing to stop someone taking a picture of the screen.

Copy Protected - The Daily WTF[^]
Yvan Rodrigues 30-Oct-18 13:09pm    
Unfortunately (for the rest of us) JavaScript allows you to intercept the keyboard buffer, which is how you were able to block the PrtSc button. Even that is more power than a script should have in my opinion.

If you have data that is so important that you don't want someone screen shotting it, you probably shouldn't be showing it on screen at all.

1 solution

If you're talking about trying to stop this from code running in your web page, you can't. It's simply not possible because allowing such functionality would be a HUGE security risk.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900