Disable Copy from Web Application

Hello,

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 TorontoSoftware DeveloperAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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/
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
APD TorontoSoftware DeveloperAuthor Commented:
$('body').bind('cut copy paste',

What else can go as parameter?
0
Chris StanyonWebDevCommented:
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.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Development

From novice to tech pro — start learning today.