Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Blogger - protect blog posts and pages by disabling text selection and copying.
//disable Text Selection and Copying
<script src='demo-to-prevent-copy-paste-on-blogger_files/googleapis.js'>
</script>
<script type='text/javascript'>
if (typeof document.onselectstart!="undefined" ) {
document.onselectstart=new Function ("return false" );
}
else {
document.onmousedown=new Function ("return false" );
document.onmouseup=new Function ("return true" );
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment