Created
September 11, 2012 08:51
-
-
Save gojun077/3697010 to your computer and use it in GitHub Desktop.
Example of anticopy JS from Daum Korea blogs
This file contains 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
document.oncontextmenu = new Function ('return false'); //block right-click | |
document.ondragstart = new Function ('return false'); //block drag and drop | |
document.onselectstart = new Function ('return false'); //block text select | |
document.body.style.MozUserSelect = 'none'; //block text select on miscellaneous browsers | |
//Below is a js library containing various anti-copy schemes | |
http://s1.daumcdn.net/cfs.tistory/v/0/blog/plugins/PreventCopyContents/js/functions.js |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment