Skip to content

Instantly share code, notes, and snippets.

@webmasterninjay
Created April 4, 2015 00:25
Show Gist options
  • Save webmasterninjay/5f08ba33e0107fb5a3b1 to your computer and use it in GitHub Desktop.
Save webmasterninjay/5f08ba33e0107fb5a3b1 to your computer and use it in GitHub Desktop.
Extra security
jQuery("body").bind("contextmenu",function(e){
return false;
});
jQuery("body").bind("cut copy paste",function(e) {
e.preventDefault();
});
document.onkeydown = function(e) {
if (e.ctrlKey &&
(e.keyCode === 67 ||
e.keyCode === 86 ||
e.keyCode === 85 ||
e.keyCode === 117)) {
alert('Are you Cheatin Bro?!'); return false;
} else {
return true;
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment