Recents in Beach

header ads

Using Javscript Disable Usage of Right Click and F12 Key on a Website

Using Javscript Disable Usage of Right Click and F12 Key on a Website

Hello everyone, In this text I'm able to discuss on a way to defend internet site content material from being copied ,mean’s in this text I'm able to show you the way to disable mouse right click on and keyboard F12 key the usage of Javascript.

Simply copy and paste underneath code into your website head phase .In case your website is in WordPress ,so goto look, Editor and find header.php document and paste beneath code above .
Using Javscript Disable Usage of Right Click and F12 Key on a Website

Disable Right Click And F12 Key

<script> window.oncontextmenu = function () { return false; } $(document).keydown(function (event) { if (event.keyCode == 123) { return false; } else if ((event.ctrlKey && event.shiftKey && event.keyCode == 73) || (event.ctrlKey && event.shiftKey && event.keyCode == 74)) { return false; } }); </script>

Disbale Text Select

-webkit-touch-callout: none; /* iOS Safari */ -webkit-user-select: none; /* Safari */ -khtml-user-select: none; /* Konqueror HTML */ -moz-user-select: none; /* Firefox */ -ms-user-select: none; /* Internet Explorer/Edge */ user-select: none; /* Non-prefixed version, currently */
Using Javscript Disable Usage of Right Click and F12 Key on a Website

And Now we hope that you will be able to Disable Right Click and F12 Key in your Website.
And if you find it valuable please share it  your Friends.

Post a Comment

0 Comments