Disable Copy from Web Application


Can anyone remind me how to disable right-click using JS/jQuery?

Also, although doubtful, as I'm working with sensitive data, is it possible to disable copying, highlighting, Ctrl+C,Alt+Print Screen, and other methods of replicating the data?

Thank you..
APD TorontoAsked:
Who is Participating?
ITS StaffCCFD#1 ITS StaffCommented:
You cannot disable screen capture because anything that you can see can be copied as an image using any of the paid or free screenshot softwares (i.e. Greenshot.)

The answer to disabling is here https://www.codexworld.com/disable-mouse-right-click-cut-copy-paste-using-jquery/
APD TorontoAuthor Commented:
$('body').bind('cut copy paste',

What else can go as parameter?
Chris StanyonCommented:
Don't be lulled into a false sense of security with this. The bottom line is that it's not a way to prevent your data from being copied. It might prevent an absolute novice from copying your text, but anyone with a modicum of experience will bypass the right-click and copy/paste/cut mechanisms with incredible ease.

If your data is particularly sensitive, then sadly, your safest option is to not display it. If you have to, then add in some authentication so it's protected. If it's visible on your web page, then it's there for everyone to copy.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.