Stop User from Using "Print Scrn"/"Printscreen" Key of the Keyboard For Any Web Page

Stop User from using Print Scrn / Printscreen key of the Keyboard for any Web Page

You can't disable screen grabbing from the Web browser, it would only be possible by installing additional software on the user's PC.

There are some IRM (Information Rights Management) tools available that do that e.g. by protecting Windows/DirectX API calls and also monitoring video memory such as Oracle IRM or such as Microsoft's IRM technology.

Especially the latter might be of interest as there is also a Rights Management Add-on for Internet Explorer.

But as other already said, any IRM/DRM technology is controversy and you should understand that it most often will limit or annoy your users.

disable print screen key using javascript

You can't. It's beyond your control, because print screen (unlike the in-browser print icon/Ctrl-P) is not a browser feature but a system feature.

Besides, any such attempt is futile and ultimately counter-productive. Because you will piss off the Joe Random User who wants to print the page because they want to read it on the bus or whatever and won't stop somebody who wants to abuse the images as they can always take advantage of the fact that the device is ultimately under their physical control and no software in the world can do anything against modification of the device (e.g. using a monitor with screen capture).

How to disable the print screen?

You can't. It's beyond your control, because print screen is not a browser feature it's a system feature.

Disable Clipboard & Print Screen on webpage

No. I am pretty sure you can't do that. Print screen is a part of the OS, not the browser. I would hope that web sites weren't able to mess with my OS like that.

You can certainly throw roadblocks in front of people trying to download an image, but short of watermarking, there isn't a great way to prevent people from getting your image (that I know of) if you make it available online.

How to disable keyboard in react native

setting keyboardType to null worked for me

EDIT:

this only worked in the simulator, running it on an actual device the native keyboard still appeared.

wrapping the <TextInput /> in a <TouchableWithoutFeedback> element in the example below worked.

<TouchableWithoutFeedback onPress={Keyboard.dismiss} >
<TextInput />
</TouchableWithoutFeedback>



Related Topics



Leave a reply



Submit