Created
July 28, 2019 16:15
-
-
Save Snbig/7c9cd9b08f37e664f278a4fe769c45f0 to your computer and use it in GitHub Desktop.
Prevent website contents from being copied
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
<html> | |
<!-- Anti-Copy by Snbig | See more: https://github.com/Snbig --> | |
<head> | |
<script src="https://ajax.aspnetcdn.com/ajax/jQuery/jquery-3.4.1.min.js"></script> | |
<script> | |
$(document).bind('copy', function(event) { | |
event.preventDefault(); | |
}); | |
</script> | |
</head> | |
<body> | |
<center> | |
Copy Me, if you can ;) | |
<center> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment