Created
April 4, 2015 00:25
-
-
Save webmasterninjay/5f08ba33e0107fb5a3b1 to your computer and use it in GitHub Desktop.
Extra security
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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