How to disable source code, control u,v, and inspect sections using jQuery?

inspect disable

$(document).bind(“contextmenu”,function(e) {
e.preventDefault();

});

disable f12
$(document).keydown(function (event) {
if (event.keyCode == 123) { // Prevent F12
return false;
} else if (event.ctrlKey && event.shiftKey && event.keyCode == 73) { // Prevent Ctrl+Shift+I
return false;
}
});

disable ctl+u


jQuery(document).ready(function($){
$(document).keydown(function(event) {
var pressedKey = String.fromCharCode(event.keyCode).toLowerCase();

if (event.ctrlKey && (pressedKey == “c” || pressedKey == “u”)) {
// alert(‘Sorry, This Functionality Has Been Disabled!’);
//disable key press porcessing
return false;
}
});

Leave a comment

Your email address will not be published. Required fields are marked *