Semua blogger pasti ingin artikelnya tidak di copy paste *Termasuk Saya.
Karena itu kali ini Saya akan memberikan Trik Agar Artikel Blog Tidak Bisa di Copy Paste.
Cara yang Saya berikan di sini terbagi 2 yaitu dengan kode yaitu kode CSS dan Javascript.
1. Membuat Artikel Tidak Bisa di Seleksi atau di Blok.
Taruh code di bawah ini tepat di atas CSS post-body Template Anda.
.post-body{ -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; }
Tambahan
Jika ingin mengaktifkan seleksi pada tulisan tertentu seperti kode pre Anda hanya tinggal mengganti tulisan .post-body dengan code pre .
pre{ -webkit-user-select: text; -khtml-user-select: text; -moz-user-select: text; -ms-user-select: text; user-select: text; }
2. Meletakkan link sumber secara otomatis saat di copy paste.
Taruh code di bawah ini di atas kode </body> .
<script type="text/javascript">
if(document.location.protocol=='http:'){ var Tynt=Tynt||[];Tynt.push('cXIEhKYVSr4lJ5adbi-bpO');Tynt.i={"ap":"Sumber :"};
(function(){var s=document.createElement('script');s.async="async";s.type="text/javascript";s.src='http://infonetmu.googlecode.com/files/sumber-otomatis.js';
var h=document.getElementsByTagName('script')[0];h.parentNode.insertBefore(s,h);})(); }
</script>
Tambahan
Anda bisa mengganti code "Sumber:" dengan tulisan apa saja seperti "Artikel ini Ber-sumber dari".
Anda bisa mengganti code "Sumber:" dengan tulisan apa saja seperti "Artikel ini Ber-sumber dari".
3. Membuat Artikel Tidak Bisa di Copas.
Cari code <body> , lalu taruh code di bawah ini tepat di atas-nya.
<script language='JavaScript1.2'> //Disable select-text script (IE4+, NS6+)- By Andy Scott //Exclusive permission granted to Dynamic Drive to feature script //Visit http://www.dynamicdrive.com for this script function disableselect(e){ return false } function reEnable(){ return true } //if IE4+ document.onselectstart=new Function ("return false") //if NS6 if (window.sidebar){ document.onmousedown=disableselect document.onclick=reEnable } </script> <script language='JavaScript'>curPage=1; document.oncontextmenu = function(){return false} if(document.layers) { window.captureEvents(Event.MOUSEDOWN); window.onmousedown = function(e){ if(e.target==document)return false; } } else { document.onmousedown = function(){return false} }</script>
4. Cara Alternatif.
Letakkan code di bawah ini tepat di bawah kode </head>
<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>
Itulah 4 Cara Agar Artikel Blog Tidak Bisa di Copy Paste.
Semoga dengan adanya Trik ini bisa membuat para Copaser menjadi jera.